Skip to content

Commit 0396145

Browse files
committed
made sure the mouse actually moves before focusing off
1 parent 58117e7 commit 0396145

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -971,7 +971,7 @@ $(window).resize(() => {
971971
});
972972

973973
$(document).mousemove(function(event) {
974-
if($("#top").hasClass("focus")){
974+
if($("#top").hasClass("focus") && (event.originalEvent.movementX > 0 || event.originalEvent.movementY > 0)){
975975
setFocus(false);
976976
}
977977
});

0 commit comments

Comments
 (0)