Skip to content

Commit

Permalink
Do add mouse pointer if it wasn't removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
knopp committed May 28, 2021
1 parent 284ea39 commit 0d40051
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,11 @@ - (void)flagsChanged:(NSEvent*)event {
}

- (void)mouseEntered:(NSEvent*)event {
_mouseState.has_pending_exit = false;
[self dispatchMouseEvent:event phase:kAdd];
if (_mouseState.has_pending_exit) {
_mouseState.has_pending_exit = false;
} else {
[self dispatchMouseEvent:event phase:kAdd];
}
}

- (void)mouseExited:(NSEvent*)event {
Expand Down

0 comments on commit 0d40051

Please sign in to comment.