Open
Description
I listened to the drag event, in the dragend
event, I got screenX
and screenY
, 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
- sketch version: 72.1
- macos version: 11.3.1
To reproduce
- git clone https://github.com/little-tomorrow/sketch-plugin-test.git
- Run
npm i
to generate themy-plugin
plugin in the project - Start sketch, select
plugin
->my-plugin
->my-command
, At this time, the webview window will be opened - Drag the github picture in the webview to the upper left corner of the screen
- Then open devtools through the right-click menu
Expected Behavior
Print out x: 0, y: 0 in devtools
Actual Behavior
Print out x: 123, y: 66 in devtools
Screenshots
Metadata
Metadata
Assignees
Labels
No labels