Created
June 22, 2018 09:37
-
-
Save khripunovpp/1351ae2a1b0bb3d7c56e2a04baefaa19 to your computer and use it in GitHub Desktop.
window.mouseout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flag = true; | |
$(window).mouseout(function(e) { | |
if (e.pageY - $(window).scrollTop() < 1 && flag == true) { | |
doSomething(); | |
flag = false; | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment