mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Fix flake 8
This commit is contained in:
@@ -91,12 +91,14 @@ class InputManager():
|
|||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
if direction is not None:
|
if direction is not None:
|
||||||
if time.time() - self.down_time > InputManager.long_click_min_time:
|
if time.time() - self.down_time > \
|
||||||
|
InputManager.long_click_min_time:
|
||||||
longpress = True
|
longpress = True
|
||||||
else:
|
else:
|
||||||
longpress = False
|
longpress = False
|
||||||
return InputEvent(InputManager.key, None, None, None,
|
return InputEvent(InputManager.key, None, None, None,
|
||||||
direction, self.last_key, longpress=longpress)
|
direction, self.last_key,
|
||||||
|
longpress=longpress)
|
||||||
|
|
||||||
def mouse_down(self, event):
|
def mouse_down(self, event):
|
||||||
self.down_pos = event.pos
|
self.down_pos = event.pos
|
||||||
|
|||||||
Reference in New Issue
Block a user