1
0
Fork 0
mirror of https://github.com/twbs/bootstrap.git synced 2022-11-09 12:25:43 -05:00
twbs--bootstrap/docs/components
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
..
alerts.md Add alert divider (<hr>) example in docs (#21673) 2017-01-15 21:33:32 -08:00
badge.md Fixed spelling error. (#22102) 2017-03-02 16:32:21 -08:00
breadcrumb.md v4: Social meta tags (#20825) 2016-10-02 18:19:47 -07:00
button-group.md Add explicit aria-label to placeholder-only inputs 2017-03-30 23:31:14 +01:00
buttons.md use secondary buttons instead of primary ones for a bit better example of styles 2017-02-12 17:15:16 -08:00
card.md Card image fixes (#22288) 2017-03-27 22:52:24 -07:00
carousel.md Fix carousel "hover" behavior on touch-enabled devices 2017-04-17 13:26:46 +01:00
collapse.md Fix collapse.js aria-expanded behavior 2017-04-10 14:51:22 +01:00
dropdowns.md Replace dropdown backdrop hack with cleaner JS-only hack 2017-04-14 09:19:00 +01:00
forms.md fix broken fieldset grid, workaround for flexbug 9 2017-03-26 13:23:49 -07:00
input-group.md Add explicit aria-label to placeholder-only inputs 2017-03-30 23:31:14 +01:00
jumbotron.md Make spacer utils responsive (#20926) 2016-10-31 21:13:05 -07:00
list-group.md Docs and CSS updates for #21807 (#22336) 2017-04-08 13:58:20 -07:00
modal.md Fix JS components console error "Error: <Component> is transitioning" 2017-03-28 23:43:15 +02:00
navbar.md Merge branch 'v4-dev' into v4-docs-button-group-a11y-patch1 2017-04-09 13:25:47 +01:00
navs.md Remove incorrect role="tabpanel" from navs docs 2017-04-09 21:15:05 +01:00
pagination.md Update broken links. 2017-01-05 11:17:22 +11:00
popovers.md Documentation - Add inserted event for Tooltip and Popover 2017-04-07 14:23:26 +02:00
progress.md Fix progress doc markup 2017-01-04 11:27:45 -08:00
scrollspy.md Docs and CSS updates for #21807 (#22336) 2017-04-08 13:58:20 -07:00
tooltips.md Documentation - Add inserted event for Tooltip and Popover 2017-04-07 14:23:26 +02:00