Skip to content
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

The editor supports using the scroll wheel to scroll the position when dragging #10096

Open
88250 opened this issue Jan 7, 2024 · 6 comments
Assignees

Comments

@88250
Copy link
Member

88250 commented Jan 7, 2024

#9516

https://ld246.com/article/1704599105970

需要注意动态加载。

@88250 88250 added this to the 2.12.4 milestone Jan 14, 2024
@88250 88250 modified the milestones: 2.12.4, backlog, 2.12.6 Jan 23, 2024
@88250 88250 changed the title The edutir supports using the scroll wheel to scroll the position when dragging The editor supports using the scroll wheel to scroll the position when dragging Jan 26, 2024
@88250 88250 removed this from the 2.12.6 milestone Jan 27, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Mar 20, 2024

电脑屏幕没那么大的情况下分屏显示会很不友好,所以当文档长了,还是要有这个功能才方便。

@TCOTC
Copy link
Contributor

TCOTC commented May 28, 2024

相关:#10095

@TCOTC
Copy link
Contributor

TCOTC commented May 28, 2024

我刚刚发现在大纲拖动的时候是能用滚轮滚动的,只有编辑器和文档树不行。

@88250 要不看一下大纲是怎么能滚动的?

@88250
Copy link
Member Author

88250 commented May 28, 2024

@Vanessa219

@TCOTC
Copy link
Contributor

TCOTC commented Dec 22, 2024

我刚刚发现在大纲拖动的时候是能用滚轮滚动的,只有编辑器和文档树不行。

研究了一下有如下发现:

大纲拖拽用的是 addEventListener("mousedown" documentSelf.onmousemove documentSelf.onmouseup,行为有点不同:#13583

编辑器和文档树拖拽用的是 addEventListener("drag... ,能实现跨窗口拖拽块

@Myeongho8888
Copy link

Myeongho8888 commented Dec 25, 2024

是的,我也发现了同样的问题:

  • 对于篇幅较长的文章,如果可以在拖动用滚轮控制滚动位置,较拖动至边缘自动滚动而言,滚动速度和拖动位置将会更加精确、高效
  • 另外在mac中拖动至边缘自动滚动会经常误触触发dock栏和状态栏,体验很不好
  • 最重要的是:思源笔记中剪切操作会丢失所有的引用关系且现在依然无解,这样就更加高度依赖拖动操作来替代剪切操作,并且这个操作非常非常高频

期待作者大大的更新,感谢!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants