DescriptionUse changed_button_flags() when converting MouseEvent to blink::WebMouseEvent.
Event::flags() contains all the buttons that are being held down during the event, while MouseEvent::changed_button_flags() contains the buttons that are actually pressed/released during the event (and this is what we really are interested in).
This fixes the issue with LMB being pressed while RMB is being held down. Without the fix, we always get blink::WebMouseEvent::ButtonRight in blink::WebMouseEvent::button.
Committed: https://crrev.com/87e6b0f6d72b12e4b0308b035d1c06f2beb90feb
Cr-Commit-Position: refs/heads/master@{#293487}
Patch Set 1 #Patch Set 2 : Only use changed_button_flags() for MousePressed & MouseReleased. #Patch Set 3 : Use changed_button_flags() only if it is set. #Messages
Total messages: 14 (1 generated)
|