2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-11 18:02:28 +03:00

Only enable pause: hover for non-touch browsers

Fixes #11967.
This commit is contained in:
Heinrich Fenkart
2014-09-16 06:02:27 +02:00
parent 4a3931d4c5
commit c37c1a6743
2 changed files with 23 additions and 1 deletions
+1 -1
View File
@@ -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))
}