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

View mode: Remember scroll position #2195

Closed
4 tasks done
XYIheng opened this issue Jan 2, 2024 · 3 comments
Closed
4 tasks done

View mode: Remember scroll position #2195

XYIheng opened this issue Jan 2, 2024 · 3 comments

Comments

@XYIheng
Copy link

XYIheng commented Jan 2, 2024

⚠️ This issue respects the following points: ⚠️

  • This is a bug. Not a question or feature request.
  • The topic is not already reported at Issues. (I've searched it).
  • Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • The bug is still present in the latest development version (git master). (Please download and try the test version of Markor, named Marder. Don't worry; Markor and Marder appear as completely separate applications. You can install both side-by-side, and Markor settings are not touched. In case the issue is resolved there, you don't need to create a bug report. The change will be part of the next Markor update.)

Description

In a long text file. I scroll down and append some txt at the end of the file, then click view mode. The file goes to the beginning instead of keeping scroll position

bug_change_view_mode.mp4

Steps to reproduce

  1. Open a long text file
  2. Scroll down and append some txt at the end of the file
  3. Click view mode
  4. see the error: the file goes to the beginning

Information

Android version: 8.0
Device: pixel2
App Version: 2.11.1

Source

F-Droid

Format / File type

Not specific

Additional info / Log

-
@harshad1
Copy link
Collaborator

harshad1 commented Jan 2, 2024

Correlating edit to view position is very hard. Especially in a files with images etc. The best we can do is scroll to the same % as the edit mode. However this will be wrong as often as not

@XYIheng
Copy link
Author

XYIheng commented Jan 3, 2024

@harshad1 If not edit, just scroll to the end of the file, then change view mode. The bug also occurs

@gsantner gsantner changed the title Bug report: changing edit to view mode doesn't keep scroll position View mode: Remember scroll position Mar 27, 2024
@gsantner
Copy link
Owner

duplicate #1025 . Please search issues before opening, thanks.

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