chuanqisun / spacemouse-anywhere

Bring 3DConnexion SpaceMouse to more places on the web
MIT License
19 stars 3 forks source link

if Rulers (Ctrl+R) - ON. - movement in X,Y is wrong #12

Closed Evgenw closed 1 year ago

Evgenw commented 1 year ago

if Rulers (Ctrl+R) - ON. - movement in X,Y is wrong. For example, if I press to the right, the space shifts down-to the right, approximately an angle of 45. Thanks :)

chuanqisun commented 1 year ago

Confirmed! I've been puzzled by this for a long time and thought something is broken with my setup, so thank you for digging up the root cause.

It turns out Figma viewport API does not handle the ruler correctly. It will drift. I'm filing a bug towards Figma API.

UPDATE, issue tracked on Figma developer forum: https://forum.figma.com/t/viewport-center-is-inaccurate-when-ruler-is-on/34757

chuanqisun commented 1 year ago

Good news @Evgenw. This is fixed by the Figma development team.

Evgenw commented 1 year ago

Thank you so much!