When sending pointer info through ws, scotty currently sends pixel coordinates (window.clientX, window.clientY), but those values may be out of range for other clients.
Fix
Instead of sending absolute coordinates, send relative coordinates (like a percentage).
Problem
When sending pointer info through ws,
scotty
currently sends pixel coordinates (window.clientX
,window.clientY
), but those values may be out of range for other clients.Fix
Instead of sending absolute coordinates, send relative coordinates (like a percentage).
If one client sends something like:
then other clients can consume that data like: