Selaa lähdekoodia

Removed gesture propagation from widget.

UVA Multi-touch 13 vuotta sitten
vanhempi
sitoutus
ebb1fa2629
1 muutettua tiedostoa jossa 1 lisäystä ja 6 poistoa
  1. 1 6
      src/widget.py

+ 1 - 6
src/widget.py

@@ -208,12 +208,7 @@ class Widget(Positionable, Logger):
     def handle_gesture(self, gesture):
         """
         Handle a gesture that is triggered by a gesture tracker. First, all
-        handlers bound to the gesture type are called. Second, if the gesture's
-        propagation has not been stopped by a handler, the gesture is
-        propagated to the parent widget.
+        handlers bound to the gesture type are called.
         """
         for handler in self.handlers.get(gesture.get_type(), ()):
             handler(gesture)
-
-        #if self.parent and not gesture.is_propagation_stopped():
-        #    self.parent.handle_gesture(gesture)