diff options
Diffstat (limited to 'webkit/api/src/mac/WebInputEventFactory.mm')
-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]; |