]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: make the "ignoreMousedisappear()" handler called before mouseenter
authorNicolas Coden <nicolas@ncoden.fr>
Sat, 28 Jul 2018 22:04:18 +0000 (00:04 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Sat, 28 Jul 2018 22:04:18 +0000 (00:04 +0200)
commit1847f6c9b1ada29490f4ffb81311ce82f8695670
treef7d041d24e729ee5a449e1a96c1cf2dcdf2819e4
parentf0168bb9fd6802127032eaf299236e755c618ede
fix: make the "ignoreMousedisappear()" handler called before mouseenter

Do not debounce the received `mouseleave` event when a `mouseenter` is expected. This is not useful (we do not have to test the window focus in this case) and would make the `mouseenter` event handler called before the filtered `mouseleave` event handler.

See https://github.com/zurb/foundation-sites/pull/11418#issuecomment-407911537
js/foundation.core.utils.js