mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
made sure the mouse actually moves before focusing off
This commit is contained in:
parent
58117e7335
commit
039614521e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue