[lightsoff] Better touch event handling for the arrows



commit 416a6a76e3022b23bab32a16f69a794060a2dbba
Author: Yosef Or Boczko <yoseforb src gnome org>
Date:   Tue May 13 23:14:17 2014 +0300

    Better touch event handling for the arrows
    
    https://bugzilla.gnome.org/show_bug.cgi?id=730081

 src/game-view.vala |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/game-view.vala b/src/game-view.vala
index c868559..9b9a9a6 100644
--- a/src/game-view.vala
+++ b/src/game-view.vala
@@ -182,13 +182,15 @@ public class GameView : Clutter.Group
 
     private bool left_arrow_touch_event_cb (Clutter.Actor actor, Clutter.Event event)
     {
-        swap_board (-1);
+        if (event.type == Clutter.EventType.TOUCH_END)
+            swap_board (-1);
         return false;
     }
        
     private bool right_arrow_touch_event_cb (Clutter.Actor actor, Clutter.Event event)
     {
-        swap_board (1);
+        if (event.type == Clutter.EventType.TOUCH_END)
+            swap_board (1);
         return false;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]