da03 commited on
Commit
9214fcd
·
1 Parent(s): 8c5eba8
Files changed (1) hide show
  1. main.py +3 -0
main.py CHANGED
@@ -471,6 +471,9 @@ async def websocket_endpoint(websocket: WebSocket):
471
  x, y = mouse_position
472
  x = x//8 * 8
473
  y = y // 8 * 8
 
 
 
474
  #mouse_position = (x//8, y//8)
475
  previous_actions.append((action_type, mouse_position))
476
  # Log the start time
 
471
  x, y = mouse_position
472
  x = x//8 * 8
473
  y = y // 8 * 8
474
+ assert x % 8 == 0
475
+ assert y % 8 == 0
476
+ mouse_position = (x, y)
477
  #mouse_position = (x//8, y//8)
478
  previous_actions.append((action_type, mouse_position))
479
  # Log the start time