Unlock cursor when moved outside of frame
The cursor locking logic doesn't gracefully handle the case where the cursor location is outside of the viewport. This leads to us locking the incorrect directions and trapping the cursor outside the viewport. This CL fixes the issue by always resetting the lock when we receive a mouse move outside the viewport. Bug: 983386 Change-Id: I33d7ab7fae0a14225663cca972dd665a9d83a4a4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1699258 Auto-Submit: David Bokan <bokan@chromium.org> Commit-Queue: Michael Thiessen <mthiesse@chromium.org> Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Cr-Commit-Position: refs/heads/master@{#676910}
Showing
Please register or sign in to comment