From 100a291254a7d72236539a6deda1a173331973c1 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Fri, 17 Jul 2009 20:20:12 +0000 Subject: Flip screen coordinates when converting NSEvent to WebMouseEvent. Enable processing of events during drag. BUG=16909, 113616 TEST=dragging thumbnails works on NTP, dragging emails in gmail. Review URL: http://codereview.chromium.org/159021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20989 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/api/src/mac/WebInputEventFactory.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webkit') diff --git a/webkit/api/src/mac/WebInputEventFactory.mm b/webkit/api/src/mac/WebInputEventFactory.mm index 33378c9..262903c 100644 --- a/webkit/api/src/mac/WebInputEventFactory.mm +++ b/webkit/api/src/mac/WebInputEventFactory.mm @@ -967,7 +967,7 @@ WebMouseEvent WebInputEventFactory::mouseEvent(NSEvent* event, NSView* view) NSPoint location = [NSEvent mouseLocation]; // global coordinates result.globalX = location.x; - result.globalY = location.y; + result.globalY = [[[view window] screen] frame].size.height - location.y; NSPoint windowLocal = [event locationInWindow]; location = [view convertPoint:windowLocal fromView:nil]; -- cgit v1.1