[Title] modified touch range in lcd
authorgiwoong.kim <giwoong.kim@samsung.com>
Wed, 8 Aug 2012 07:16:55 +0000 (16:16 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Wed, 8 Aug 2012 07:16:55 +0000 (16:16 +0900)
[Type] feature
[Module] Emulator / touch
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorSkin.java

index 807b3c9..7608b55 100644 (file)
@@ -792,8 +792,8 @@ public class EmulatorSkin {
                                        int eventType = MouseEventType.DRAG.value();
                                        Point canvasSize = canvas.getSize();
 
-                                       if ( e.x <= 0 ) {
-                                               e.x = 1;
+                                       if ( e.x < 0 ) {
+                                               e.x = 0;
                                                eventType = MouseEventType.UP.value();
                                                EmulatorSkin.this.isDragStartedInLCD = false;
                                        } else if ( e.x >= canvasSize.x ) {
@@ -802,8 +802,8 @@ public class EmulatorSkin {
                                                EmulatorSkin.this.isDragStartedInLCD = false;
                                        }
 
-                                       if ( e.y <= 0 ) {
-                                               e.y = 1;
+                                       if ( e.y < 0 ) {
+                                               e.y = 0;
                                                eventType = MouseEventType.UP.value();
                                                EmulatorSkin.this.isDragStartedInLCD = false;
                                        } else if ( e.y >= canvasSize.y ) {