def on_touch_up(self, touch): if touch.grab_current is self: self.uMoveType = u'up' Slider.on_touch_up(self, touch) self.UpdateButtonPos() touch.ungrab(self) return True else: return super(cSliderEx, self).on_touch_up(touch)
def on_touch_up(self, touch): if touch.grab_current is self: self.uMoveType=u'up' Slider.on_touch_up(self,touch) self.UpdateButtonPos() touch.ungrab(self) return True else: return super(cSliderEx, self).on_touch_up(touch)
def on_touch_up(self, touch) -> bool: if touch.grab_current is self and not Globals.oTheScreen.GuiIsBlocked( ): self.uMoveType = u'up' Slider.on_touch_up(self, touch) self.UpdateButtonPos() touch.ungrab(self) return True else: return super(cSliderEx, self).on_touch_up(touch)