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
Additional information:
I found that by dragging pictures of different sizes to the upper left corner, the final printed information is also different, basically the value of x is the same, the value of y is very different
so on macOS, the origin is at the bottom left (as opposed to JavaScript where it's at the top left). Maybe I made a mistake when trying to convert the coordinates.
I listened to the drag event, in the
dragend
event, I gotscreenX
andscreenY
, and found that their values are wrong.Here is a minimal reproducible example, which is a repository generated using
skpm/with-webview
template:https://github.com/little-tomorrow/sketch-plugin-test
Version Information
To reproduce
npm i
to generate themy-plugin
plugin in the projectplugin
->my-plugin
->my-command
, At this time, the webview window will be openedExpected Behavior
Print out x: 0, y: 0 in devtools
Actual Behavior
Print out x: 123, y: 66 in devtools
Screenshots
The text was updated successfully, but these errors were encountered: