Skip to content

Commit 58117e7

Browse files
committed
setting focus to off only if focus is already active
1 parent 70469af commit 58117e7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

public/js/script.js

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

973973
$(document).mousemove(function(event) {
974-
setFocus(false);
974+
if($("#top").hasClass("focus")){
975+
setFocus(false);
976+
}
975977
});
976978

977979
//keypresses for the test, using different method to be more responsive

0 commit comments

Comments
 (0)