You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to play with multiplayer presence technology and to show the other participant cursor position inside invinite viewer.
But as you can see the cursors have window position and not adjusted to scrolled area and not to zoom of the invinite viewer. For example, when one cursor on "div 5" second on "div 4"
I've tried couple of things of adjusting relativly to container, but no luck yet...
Can you please advise of how to adjust the coordinate to reflect the real world inside the canvas?
Playground: codesandbox (hot reload breaks sometime, so need to refresh manualy, you can add second preview tab)
A huge thanks anyway!
The text was updated successfully, but these errors were encountered:
Hello again :)
I'm trying to play with multiplayer presence technology and to show the other participant cursor position inside invinite viewer.
But as you can see the cursors have window position and not adjusted to scrolled area and not to zoom of the invinite viewer.
For example, when one cursor on "div 5" second on "div 4"
I've tried couple of things of adjusting relativly to container, but no luck yet...
Can you please advise of how to adjust the coordinate to reflect the real world inside the canvas?
Playground: codesandbox
(hot reload breaks sometime, so need to refresh manualy, you can add second preview tab)
A huge thanks anyway!
The text was updated successfully, but these errors were encountered: