diff options
author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 20:20:12 +0000 |
---|---|---|
committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-17 20:20:12 +0000 |
commit | 100a291254a7d72236539a6deda1a173331973c1 (patch) | |
tree | 24c4921f7316aba5d3c46facfc84987336a2e775 /webkit/api | |
parent | 128369396677f4480166e12d5e14d2a578336f3f (diff) | |
download | chromium_src-100a291254a7d72236539a6deda1a173331973c1.zip chromium_src-100a291254a7d72236539a6deda1a173331973c1.tar.gz chromium_src-100a291254a7d72236539a6deda1a173331973c1.tar.bz2 |
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
Diffstat (limited to 'webkit/api')
-rw-r--r-- | webkit/api/src/mac/WebInputEventFactory.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |