[gcompris] mining activity, bypass left and right scroll event.



commit c33da2b7b2e9459c41b4b1d240e69bd03c7e36b3
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Oct 7 14:50:26 2012 +0200

    mining activity, bypass left and right scroll event.
    
    Replaced an assert by a bypass.

 src/mining-activity/mining.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mining-activity/mining.py b/src/mining-activity/mining.py
index 8839506..1e38289 100644
--- a/src/mining-activity/mining.py
+++ b/src/mining-activity/mining.py
@@ -849,7 +849,8 @@ class Viewport:
       if self.scale > self.scale_max:
         self.scale = self.scale_max
     else:
-      assert(False)
+      # We don't accept SRCOLL_RIGHT and LEFT
+      return True
 
 
     ###



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