From c37c1a67438b3c682bac3787069eb33fefa6f154 Mon Sep 17 00:00:00 2001 From: Heinrich Fenkart Date: Tue, 16 Sep 2014 06:02:27 +0200 Subject: Only enable `pause: hover` for non-touch browsers Fixes #11967. --- js/carousel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'js/carousel.js') diff --git a/js/carousel.js b/js/carousel.js index 65cc7b912..4c9a1165c 100644 --- a/js/carousel.js +++ b/js/carousel.js @@ -23,7 +23,7 @@ this.$active = this.$items = null - this.options.pause == 'hover' && this.$element + this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) } -- cgit v1.2.3