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
Great tool! However, it seems a bit difficult to repurpose this to follow the mouse (or otherwise manually set an X and Y position), at least from how it's currently built. Perhaps it would help to have a setX and setY function built into the magnifier object?
Additionally, from a UX perspective, it would make more sense for the viewfinder to focus on the point at its center, not its upper-left. I was able to quick-fix that by setting the element's "transform" to "translate" with the X and Y as -S/(Z*2); S as the width / height for X and Y (respectively), and Z as the zoom. I know there's more elegant ways, though.
The text was updated successfully, but these errors were encountered:
Great tool! However, it seems a bit difficult to repurpose this to follow the mouse (or otherwise manually set an X and Y position), at least from how it's currently built. Perhaps it would help to have a setX and setY function built into the magnifier object?
Additionally, from a UX perspective, it would make more sense for the viewfinder to focus on the point at its center, not its upper-left. I was able to quick-fix that by setting the element's "transform" to "translate" with the X and Y as
-S/(Z*2)
; S as the width / height for X and Y (respectively), and Z as the zoom. I know there's more elegant ways, though.The text was updated successfully, but these errors were encountered: