Chromium Code Reviews
DescriptionThe patch keeps track of the mouse buttons that are currently pressed. Now, when a mouse drag occurs, it checks the state of the mouse buttons again explicitly to see whether perchance a button was released, but without the corresponding release event.
If so, it processes a release event out of order, and remembers this fact, so that the same event isn't fired twice.
The code explicitly tracks all 3 buttons, even though
currently, just checking a general "button released" would be sufficient (the current code generally isn't concerned WHICH button was released).
Tracking the buttons explicitly should be safer for potential future changes, though.
Don't know about any reliable way to test this, though.
Tested it inside the debugger by setting breakpoints that gave me the chance to release the mouse button out of order.
Implemented under Windows only atm.
BUG=2993
TEST=none
Patch Set 1 #Patch Set 2 : '' #
Messages
Total messages: 9 (0 generated)
|
||||||||||||||||||||||||||||