Add GesturePinchBegin/End events on Mac
Because a single gesture (in NSEvent-speak) can contain multiple types of sub-gestures (e.g, pinch and rotate), we do not get a begin/end of the magnify-only part of the gesture. Work around this by saving the NSEvent-gesture's beginning event, sending it (with the right type) when the magnification begins, and sending an end event when the gesture ends (only if a magnification event was sent). BUG=451559 Review URL: https://codereview.chromium.org/886893002 Cr-Commit-Position: refs/heads/master@{#314594}
Showing
Please register or sign in to comment