-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): support alt key duplicate #WIK-15159 #851
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
pendingNodesG = createG(); | ||
pendingNodesG.classList.add(ACTIVE_MOVING_CLASS_NAME); | ||
} | ||
pendingNodesG!.append(movingG); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果有角度的话,好像需要设置下角度
|
||
export function withMoving(board: PlaitBoard) { | ||
const { pointerDown, pointerMove, globalPointerUp, globalPointerMove } = board; | ||
const { pointerDown, pointerMove, globalPointerUp, globalPointerMove, globalKeyDown, keyUp, pointerUp } = board; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对于 duplicated 感觉可以和 with-moving 分开,没必要一起考虑,看看拆开是否合理
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
也可以拆开,但是重复代码就会很多, pointerDown 中针对 activeElements 的处理逻辑、还有参考线的逻辑都是一样的
No description provided.