]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: keep the original event datas in Touch tap/swipe events
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 1 Aug 2018 21:57:14 +0000 (23:57 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 1 Aug 2018 21:57:14 +0000 (23:57 +0200)
commitf016a9f2f4896ee36ad933d8d3538bdd38015965
treecd10e157eba3ab07b8e434989f2df1d0932df114
parent477edad49c1120850c6e88ef5bb1a02054e0862f
fix: keep the original event datas in Touch tap/swipe events

Keep the `touchstart`/`touchmove`/`touchend` datas (like `target`) for the events that are manually triggered: `tap` and `swipe`.

This resolve a bug in "Reveal" when a `touchend` event inside the reveal modal is transformed to a `tap` event on the overlay because the original `target` is lost when triggered the event on the overlay.
js/foundation.util.touch.js