0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/js/tests/unit
Patrick H. Lauke 6ae5fb12e6 Fix carousel "hover" behavior on touch-enabled devices
* Add carousel mouse listeners even if touch events enabled

- touch events are enabled not just on "mobile", just also on
touch-enabled desktop/laptop devices; additionally, it's possible to
pair a mouse with traditionally touch-only devices (e.g. Android
phones/tablets); currently, in these situations the carousel WON'T pause
even when using a mouse

* Restart cycle after touchend

as `mouseenter` is fired as part of the touch compatibility events, the
previous change results in carousels which cycle until the user
tapped/interacted with them. after that they stop cycling (as
`mouseleave` is not sent to the carousel after user scrolled/tapped
away).
this fix resets the cycling after `touchend` - essentially returning
to the previous behavior, where on touch the carousel essentially never
pauses, but now with the previous fix it at least pauses correctly for
mouse users on touch-enabled devices.
includes documentation for this new behavior.
2017-04-17 13:26:46 +01:00
..
alert.js Rename .active to .show 2016-12-07 21:20:15 -07:00
button.js Only change aria-pressed if it's not an input-based radio or checkbox group 2017-04-10 14:43:54 +01:00
carousel.js Fix carousel "hover" behavior on touch-enabled devices 2017-04-17 13:26:46 +01:00
collapse.js Fix collapse.js aria-expanded behavior 2017-04-10 14:51:22 +01:00
dropdown.js Fixes #21941 2017-02-08 18:51:50 -05:00
modal.js Fix #22332: Adjust tests for hidden scrollbar 2017-04-03 13:27:15 +02:00
phantom.js Make JS compliant with the new ESLint rules. 2016-11-24 11:59:55 +11:00
popover.js Popover + Tooltip - fix error when content or title is a number 2017-03-31 10:03:54 +02:00
scrollspy.js Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, .nav-item, <li> etc...) 2017-04-02 11:21:04 +02:00
tab.js Tabs/Scrollspy/.nav/.list-group/.active independent of markup (<nav>, .nav-item, <li> etc...) 2017-04-02 11:21:04 +02:00
tooltip.js Popover + Tooltip - fix error when content or title is a number 2017-03-31 10:03:54 +02:00