]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: keep the original event datas in Touch tap/swipe events (v6.5)
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 10 Oct 2018 17:27:41 +0000 (19:27 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 11 Oct 2018 19:46:02 +0000 (21:46 +0200)
commit8d0d739c3fd105558db38f5090a406b81507c7c8
treef6cc86d865c73b8ef98908e542fb50c777531bbc
parenta9bb65adae2c250500ca7a6ca2664ec4cd23a86b
fix: keep the original event datas in Touch tap/swipe events (v6.5)

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.

This is a patch of f016a9f (#11430) for v6.5.
js/foundation.util.touch.js