jspaint icon indicating copy to clipboard operation
jspaint copied to clipboard

Other users cursors wont move up when scrolling down in multi-user mode

Open gabo-alv opened this issue 4 years ago • 1 comments

STR:

  • Start a multi-user session in two devices (or two tabs). Let's call them Alice and Bob
  • Move Alice mouse to somewhere at the top on the drawing canvas so it's visible to Bob.
  • In Bob's screen , scroll all the way to the bottom. (Don't move the mouse in Alice screen)

Result :

  • Alice mouse is fixed in Bob's screen and has the same X, Y coordinates even when Bob is scrolling down

Expected :

  • Alice mouse should move up in absolute X,Y coordinates in Bob's screen, as Bob's local coordinates system has moved down.

Also notice that when, after scrolling down in Bob's screen , you move Alice's mouse in any direction, Alice's mouse gets moved to the correct relative position in Bob's screen, so I'm assuming that the remote users cursors are only being updated when their remote state changes, but local changes such as the local coordinates are not taken into account.

gabo-alv avatar Oct 09 '20 01:10 gabo-alv

Multiplayer support is garbage. I will rewrite it at some point, and it will be glorious.

1j01 avatar Dec 03 '20 21:12 1j01