touch fix

This commit is contained in:
Sander Land committed 2020-06-21 17:36:43 +02:00
1 parent 91037eb10b
commit c4b13fabb4
1 file changed
+2 -2
+2 -2
View File
@@ -44,12 +44,12 @@ class LeftButtonBehavior(ButtonBehavior): # stops buttons etc activating on rig
return super().on_touch_down(touch)
def on_release(self):
if not self.last_touch or self.last_touch.button == "left":
if not self.last_touch or "button" not in self.last_touch.profile or self.last_touch.button == "left":
self.dispatch("on_left_release")
return super().on_release()
def on_press(self):
if not self.last_touch or self.last_touch.button == "left":
if not self.last_touch or "button" not in self.last_touch.profile or self.last_touch.button == "left":
self.dispatch("on_left_press")
return super().on_press()