Skip to content

Go back keep scroll position #10050

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
heheda123123 opened this issue Jan 2, 2024 · 2 comments
Closed

Go back keep scroll position #10050

heheda123123 opened this issue Jan 2, 2024 · 2 comments
Assignees
Milestone

Comments

@heheda123123
Copy link

In what scenarios do you need this feature?

比如如下场景
1 页面如下,22在屏幕中间
image
2 点击22行,跳转到子文档
3 点击“后退”,会变成下面这样,光标和22行移动到了最上面去
image

一般前进后退时,光标和屏幕位置都会保持不变,在第三步点击“后退”时,光标回来了,但是是否能把屏幕位置也恢复成图1的样子,让22行居中

Describe the optimal solution

点击链接跳转时记住屏幕的位置,点击“后退”时恢复屏幕位置,而不只是恢复光标位置

Describe the candidate solution

No response

Other information

No response

@Jiangshuon
Copy link

这本书超棒!还有王爽的《汇编语言》

@Vanessa219 Vanessa219 self-assigned this Jan 2, 2024
Vanessa219 added a commit that referenced this issue Jan 2, 2024
@Vanessa219 Vanessa219 added this to the 2.12.1 milestone Jan 2, 2024
@Vanessa219 Vanessa219 changed the title 点击“后退”后,屏幕位置没有恢复 Back to maintain scroll position Jan 2, 2024
@88250 88250 changed the title Back to maintain scroll position Go back keep scroll position Jan 2, 2024
@heheda123123
Copy link
Author

heheda123123 commented Jan 2, 2024

这本书超棒!还有王爽的《汇编语言》

确实,看完学到很多东西,不过我看的视频,比书的内容丰富一点

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

3 participants