Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
f9392ac
1
Parent(s):
8ac6ee5
worker.py
CHANGED
@@ -450,16 +450,16 @@ class GPUWorker:
|
|
450 |
# Check if this is an interesting event
|
451 |
CONSIDER_SCROLL = False # TODO: consider scroll in future versions
|
452 |
if CONSIDER_SCROLL:
|
453 |
-
is_interesting = (current_input.get("is_left_click") or
|
454 |
-
current_input.get("is_right_click") or
|
455 |
-
(current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
|
456 |
(current_input.get("keys_up") and len(current_input.get("keys_up")) > 0) or
|
457 |
current_input.get("wheel_delta_x", 0) != 0 or
|
458 |
-
current_input.get("wheel_delta_y", 0) != 0)
|
459 |
-
else:
|
460 |
-
is_interesting = (current_input.get("is_left_click") or
|
461 |
-
current_input.get("is_right_click") or
|
462 |
-
(current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
|
463 |
(current_input.get("keys_up") and len(current_input.get("keys_up")) > 0))
|
464 |
|
465 |
# Process immediately if interesting
|
|
|
450 |
# Check if this is an interesting event
|
451 |
CONSIDER_SCROLL = False # TODO: consider scroll in future versions
|
452 |
if CONSIDER_SCROLL:
|
453 |
+
is_interesting = (current_input.get("is_left_click") or
|
454 |
+
current_input.get("is_right_click") or
|
455 |
+
(current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
|
456 |
(current_input.get("keys_up") and len(current_input.get("keys_up")) > 0) or
|
457 |
current_input.get("wheel_delta_x", 0) != 0 or
|
458 |
+
current_input.get("wheel_delta_y", 0) != 0)
|
459 |
+
else:
|
460 |
+
is_interesting = (current_input.get("is_left_click") or
|
461 |
+
current_input.get("is_right_click") or
|
462 |
+
(current_input.get("keys_down") and len(current_input.get("keys_down")) > 0) or
|
463 |
(current_input.get("keys_up") and len(current_input.get("keys_up")) > 0))
|
464 |
|
465 |
# Process immediately if interesting
|