Skip to content

按住 Shift 时无法拖拽列表项的圆点 #12542

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

Closed
TCOTC opened this issue Sep 21, 2024 · 2 comments
Closed

按住 Shift 时无法拖拽列表项的圆点 #12542

TCOTC opened this issue Sep 21, 2024 · 2 comments
Assignees

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Sep 21, 2024

改进 Shift+拖拽 列表项的圆点

https://ld246.com/article/1726928427834

生成嵌入块。

目前需要先拖拽再按 Shift,不能先按 Shift 再拖拽。

@TCOTC TCOTC changed the title 支持 Shift+拖拽 列表项的圆点 支持 Shift+拖拽 无序列表项的圆点 Sep 21, 2024
@TCOTC TCOTC changed the title 支持 Shift+拖拽 无序列表项的圆点 改进 Shift+拖拽 列表项的圆点 Dec 1, 2024
@TCOTC
Copy link
Contributor Author

TCOTC commented Dec 1, 2024

2025.05.16: 不知道是什么时候改的,现在按住 Shift 的时候不会有 .dragover__bottom 了,因此下面这个问题就没有了:


还有个特殊操作会把 .dragover__bottom 留在块里:

视频中拖住块往下拉的时候按 Shift,直到 .dragover__bottom 没被移除的时候就放手

video.webm

@TCOTC TCOTC changed the title 改进 Shift+拖拽 列表项的圆点 按住 Shift 时无法拖拽列表项的圆点 May 15, 2025
@TCOTC
Copy link
Contributor Author

TCOTC commented May 15, 2025

#14835

研究了几个小时,最后终于发现问题出在哪了:按住 Shift 拖拽列表项的圆点时,实际上拖拽的是里面的 svg 元素,无法触发 dragstart 事件

然后根据关键词找到了:

TCOTC added a commit to TCOTC/siyuan that referenced this issue May 15, 2025

Verified

This commit was signed with the committer’s verified signature.
@TCOTC TCOTC closed this as completed May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants