mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 853490 - Added a block so that Windows pinch-to-zoom ends with a MozMagnifyGesture--implicitly, the end of the gesture. Parity with OS X. r=jmathies
This commit is contained in:
parent
dac8ccdb05
commit
ae0a839590
@ -336,8 +336,16 @@ nsWinGesture::ProcessGestureMessage(HWND hWnd, WPARAM wParam, LPARAM lParam, nsS
|
||||
evt.message = NS_SIMPLE_GESTURE_MAGNIFY_START;
|
||||
evt.delta = 0.0;
|
||||
}
|
||||
else if (gi.dwFlags & GF_END) {
|
||||
// Send a zoom end event, the delta is the change
|
||||
// in touch points.
|
||||
evt.message = NS_SIMPLE_GESTURE_MAGNIFY;
|
||||
// (positive for a "zoom in")
|
||||
evt.delta = -1.0 * (mZoomIntermediate - (float)gi.ullArguments);
|
||||
mZoomIntermediate = (float)gi.ullArguments;
|
||||
}
|
||||
else {
|
||||
// Send a zoom intermediate/end event, the delta is the change
|
||||
// Send a zoom intermediate event, the delta is the change
|
||||
// in touch points.
|
||||
evt.message = NS_SIMPLE_GESTURE_MAGNIFY_UPDATE;
|
||||
// (positive for a "zoom in")
|
||||
|
Loading…
Reference in New Issue
Block a user