jspaint
jspaint copied to clipboard
Other users cursors wont move up when scrolling down in multi-user mode
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.
Multiplayer support is garbage. I will rewrite it at some point, and it will be glorious.