popup doesn't propagate touch_up/move events

This commit is contained in:
Pierre-Antoine Delsart 2012-01-26 22:21:11 +01:00
parent 48a039f681
commit 342fa0da6e
1 changed files with 8 additions and 0 deletions

View File

@ -236,6 +236,14 @@ class Popup(FloatLayout):
if self._window: if self._window:
self.center = self._window.center self.center = self._window.center
def on_touch_move(self, touch):
super(Popup, self).on_touch_move(touch) # progate to content
return True # stop propagation to widgets outside the popup
def on_touch_up(self, touch):
super(Popup, self).on_touch_up(touch)
return True # stop propagation to widgets outside the popup
def on_touch_down(self, touch): def on_touch_down(self, touch):
if not self.collide_point(*touch.pos): if not self.collide_point(*touch.pos):
if self.auto_dismiss: if self.auto_dismiss: