Skip to content

Commit

Permalink
linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Badorreck committed Apr 15, 2024
1 parent e777326 commit b876367
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kivy_garden/matplotlib/backend_kivy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,8 +1228,8 @@ def on_touch_down(self, touch):
if self.collide_point(*touch.pos):
self.motion_notify_event(x, y)
touch.grab(self)
if ("button" in touch.profile and
touch.button in ("scrollup", "scrolldown")):
if ("button" in touch.profile and touch.button in ("scrollup",
"scrolldown")):
self.scroll_event(x, y, 5)
else:
self.button_press_event(x, y, self.get_mouse_button(touch))
Expand Down Expand Up @@ -1280,8 +1280,8 @@ def on_touch_up(self, touch):
x = newcoord[0]
y = newcoord[1]
if touch.grab_current is self:
if ("button" in touch.profile and
touch.button in ("scrollup", "scrolldown")):
if ("button" in touch.profile and touch.button in ("scrollup",
"scrolldown")):
self.scroll_event(x, y, 5)
else:
self.button_release_event(x, y, self.get_mouse_button(touch))
Expand Down

0 comments on commit b876367

Please sign in to comment.