Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2049)

Unified Diff: Source/web/WebInputEventFactoryMac.mm

Issue 254783004: Fix pinchUpdate scale semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebInputEventFactoryMac.mm
diff --git a/Source/web/WebInputEventFactoryMac.mm b/Source/web/WebInputEventFactoryMac.mm
index 30e5f2872b795ff58b52857bdea6bc7b52f6d60c..7eb7b1f168eead9af4ebda97db32db3fa804c8c3 100644
--- a/Source/web/WebInputEventFactoryMac.mm
+++ b/Source/web/WebInputEventFactoryMac.mm
@@ -1141,7 +1141,7 @@ WebGestureEvent WebInputEventFactory::gestureEvent(NSEvent *event, NSView *view)
switch ([event type]) {
case NSEventTypeMagnify:
result.type = WebInputEvent::GesturePinchUpdate;
- result.data.pinchUpdate.scale = [event magnification];
+ result.data.pinchUpdate.scale = [event magnification] + 1.0;
break;
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698