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

after drag/resize, keep then cursor in the editor #1291

Closed
roverway opened this issue Jan 26, 2021 · 4 comments
Closed

after drag/resize, keep then cursor in the editor #1291

roverway opened this issue Jan 26, 2021 · 4 comments
Assignees
Milestone

Comments

@roverway
Copy link

描述问题 Describe the problem

调整编辑区域宽度(或打开和关闭侧栏时),光标所在位置被从当前屏幕可见区域挤出

期待的结果 Expected result

编辑区宽度变化前后,光标所在位置始终在屏幕中心

@Vanessa219 Vanessa219 self-assigned this Feb 9, 2021
@Vanessa219 Vanessa219 added this to the 0.9.5 milestone Feb 9, 2021
@Vanessa219
Copy link
Member

由于后期打开文件树时需将光标移动到文件树上,以方便的使用上下键进行选择。
因此打开和关闭侧栏时请使用快捷键。

@Vanessa219 Vanessa219 changed the title 编辑区域宽度缩放时,始终保持光标在屏幕可见区域内 after drag/resize, keep then cursor in the editor Feb 9, 2021
@roverway
Copy link
Author

roverway commented Feb 9, 2021

由于后期打开文件树时需将光标移动到文件树上,以方便的使用上下键进行选择。
因此打开和关闭侧栏时请使用快捷键。

这个问题和是否使用快捷键打开文件树无关,问题在于文件树挤占编辑区域后,编辑区域内容宽度变化导致当前光标位置被挤出屏幕外。除非侧边栏能够浮动在编辑区上层显示,不挤占屏幕空间,否则这个问题始终都有。

刚看到milestone 0.9.5了,挤占屏幕问题095解决是吗?能解决最好了。

@Vanessa219
Copy link
Member

修改以后是再拖拽后光标依旧保持在编辑器中。使用鼠标点击关闭和打开文件树不行,但是可以先用 alt+1 顶顶

@roverway
Copy link
Author

roverway commented Feb 9, 2021

修改以后是再拖拽后光标依旧保持在编辑器中。使用鼠标点击关闭和打开文件树不行,但是可以先用 alt+1 顶顶

没问题,本来我也是用快捷键打开和关闭侧栏的。多谢啦!

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

2 participants