]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: fix "tap" event triggering in Touch
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 1 Aug 2018 21:09:30 +0000 (23:09 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Wed, 1 Aug 2018 21:09:30 +0000 (23:09 +0200)
commite07bd4ea8157930e1871e6abf4ae2bbcb01de77b
tree8c6c7a92413db8a1a6d442f15e78a9891e422220
parent281681a305931a350d59a8476f538416bddf9788
fix: fix "tap" event triggering in Touch

The current implementation actually never triggers the "tap" event. This commit refactor its handling to triggers it when the screen is touched without sliding.

Changes:
- Register the `tap` event in jQuery
- Triggers the `tap` event on `mouseend` if no moves were recorded before.
js/foundation.util.touch.js