]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: fix "tap" event triggering in Touch (v6.5)
authorNicolas Coden <nicolas@ncoden.fr>
Wed, 10 Oct 2018 17:20:24 +0000 (19:20 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 11 Oct 2018 19:45:06 +0000 (21:45 +0200)
commita9bb65adae2c250500ca7a6ca2664ec4cd23a86b
treeeacbc17270d8546d417ad8520b8183625cbab471
parent28d71e82b6646f65252cdd86a8b8e2f27584ae39
fix: fix "tap" event triggering in Touch (v6.5)

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.

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