changeset 6848:f2043e51608b

RT-36487 : IMX6/monocle/touch - single touch events sequence is interpreted as multi-touch events Reviewed-by : dblaukopf.
author Rafi Tayar <rafi.tayar@oracle.com>
date Tue, 22 Apr 2014 15:42:22 +0300
parents cd30fe269fba
children 8321c28bf87b
files modules/graphics/src/main/java/com/sun/glass/ui/monocle/linux/LinuxSimpleTouchProcessor.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/monocle/linux/LinuxSimpleTouchProcessor.java	Tue Apr 22 15:18:06 2014 +0300
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/monocle/linux/LinuxSimpleTouchProcessor.java	Tue Apr 22 15:42:22 2014 +0300
@@ -71,7 +71,7 @@
                         case Input.BTN_TOUCH:
                             if (buffer.getEventValue() == 0) {
                                 touchReleased = true;
-                            } else {
+                            } else if (state.getPointCount() == 0) {
                                 // restore an old point
                                 state.addPoint(null);
                             }