| Index: webkit/api/src/mac/WebInputEventFactory.mm
|
| ===================================================================
|
| --- webkit/api/src/mac/WebInputEventFactory.mm (revision 20948)
|
| +++ webkit/api/src/mac/WebInputEventFactory.mm (working copy)
|
| @@ -967,7 +967,7 @@
|
|
|
| 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];
|
|
|