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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
现有一个需求,希望不使用官方的Stencil而是通过自定义drop事件来实现拖拽,现在是通过获取drop事件在svg上的相对位置来计算的
但是当页面自动扩大时,通过drop获取的数据就不对了
(比如页面大小是300*200,左侧自动扩大一页后我获取到的drop事件的x就是实际位置+300了,是以画布整体作为参照的定位,而x6里面是根据画布的初始页作为参照 )
有办法知道当前x-y-方向扩展了多大的页面吗
Beta Was this translation helpful? Give feedback.
All reactions