[ctxpopup] fixed bugs when dragging an item horizontally or vertically
authorBora Hwang <bora1.hwang@samsung.com>
Thu, 21 Mar 2013 05:21:29 +0000 (14:21 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 28 Mar 2013 03:57:22 +0000 (12:57 +0900)
Change-Id: I49863ce6a637843b404425798a393c94801ee307

themes/widgets/ctxpopup.edc

index 47632bd..43d0144 100644 (file)
                                mouse_events: 1;
                                repeat_events: 1;
                                dragable {
-                                       x: 0 0 0;
+                                       x: 1 1 0;
                                        y: 1 1 0;
                                }
                                description {
                                script {
                                        new Float:dx, Float:dy;
                                        get_drag(PART:"over2", dx, dy);
-                                       if (abs(dy) > 20)
+                                       if ((abs(dx) > 20) || (abs(dy) > 20))
                                                {
                                                        set_drag(PART:"over2", 0.0, 0.0);
                                                        set_state(PART:"elm.text", "compress", 0.0);
                                repeat_events: 1;
                                dragable {
                                        x: 1 1 0;
-                                       y: 0 0 0;
+                                       y: 1 1 0;
                                }
                                description {
                                        state: "default" 0.0;
                                script {
                                        new Float:dx, Float:dy;
                                        get_drag(PART:"over2", dx, dy);
-                                       if (abs(dx) > 20)
+                                       if ((abs(dx) > 20) || (abs(dy) > 20))
                                                {
                                                        set_drag(PART:"over2", 0.0, 0.0);
                                                        set_state(PART:"elm.text", "compress", 0.0);
                                repeat_events: 1;
                                dragable {
                                        x: 1 1 0;
-                                       y: 0 0 0;
+                                       y: 1 1 0;
                                }
                                description {
                                        state: "default" 0.0;
                                script {
                                        new Float:dx, Float:dy;
                                        get_drag(PART:"over2", dx, dy);
-                                       if (abs(dx) > 20)
+                                       if ((abs(dx) > 20) || (abs(dy) > 20))
                                                {
                                                        set_drag(PART:"over2", 0.0, 0.0);
                                                        set_state(PART:"bg", "default", 0.0);
                                mouse_events: 1;
                                repeat_events: 1;
                                dragable {
-                                       x: 0 0 0;
+                                       x: 1 1 0;
                                        y: 1 1 0;
                                }
                                description {
                                script {
                                        new Float:dx, Float:dy;
                                        get_drag(PART:"over2", dx, dy);
-                                       if (abs(dy) > 20)
+                                       if ((abs(dx) > 20) || (abs(dy) > 20))
                                                {
                                                        set_drag(PART:"over2", 0.0, 0.0);
                                                        set_state(PART:"elm.text", "compress", 0.0);
                                mouse_events: 1;
                                repeat_events: 1;
                                dragable {
-                                       x: 0 0 0;
+                                       x: 1 1 0;
                                        y: 1 1 0;
                                }
                                description {
                                script {
                                        new Float:dx, Float:dy;
                                        get_drag(PART:"over2", dx, dy);
-                                       if (abs(dy) > 20)
+                                       if ((abs(dx) > 20) || (abs(dy) > 20))
                                                {
                                                        set_drag(PART:"over2", 0.0, 0.0);
                                                        set_state(PART:"elm.text", "compress", 0.0);
@@ -5244,7 +5244,7 @@ group {
                                mouse_events: 1;
                                repeat_events: 1;
                                dragable {
-                                       x: 0 0 0;
+                                       x: 1 1 0;
                                        y: 1 1 0;
                                }
                                description {
@@ -5367,7 +5367,7 @@ group {
                                script {
                                        new Float:dx, Float:dy;
                                        get_drag(PART:"over2", dx, dy);
-                                       if (abs(dy) > 20)
+                                       if ((abs(dx) > 20) || (abs(dy) > 20))
                                                {
                                                        set_drag(PART:"over2", 0.0, 0.0);
                                                        set_state(PART:"elm.text", "compress", 0.0);