changeset 7615:859783c709ed

RT-37950: Wrong touch coordinates for a window not at the origin (0,0)
author Seeon Birger <seeon.birger@oracle.com>
date Sun, 03 Aug 2014 13:13:32 +0300
parents d1aac088a16b
children edd25a1b83bb
files modules/graphics/src/main/java/com/sun/glass/ui/monocle/TouchInput.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/TouchInput.java	Fri Aug 01 12:44:55 2014 -0400
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/TouchInput.java	Sun Aug 03 13:13:32 2014 +0300
@@ -129,8 +129,8 @@
     private void dispatchPoint(Window window, View view, int state,
                                int id, int x, int y) {
         touches.notifyNextTouchEvent(view, state, id,
-                                     x, y,
-                                     x - window.getX(), y - window.getY());
+                                     x - window.getX(), y - window.getY(),
+                                     x, y);
     }
 
     private void postPoints(Window window, View view,