made sure the mouse actually moves before focusing off

This commit is contained in:
unknown 2020-05-24 22:42:43 +01:00
parent 58117e7335
commit 039614521e

View file

@ -971,7 +971,7 @@ $(window).resize(() => {
});
$(document).mousemove(function(event) {
if($("#top").hasClass("focus")){
if($("#top").hasClass("focus") && (event.originalEvent.movementX > 0 || event.originalEvent.movementY > 0)){
setFocus(false);
}
});