markor icon indicating copy to clipboard operation
markor copied to clipboard

Bug report: changing edit to view mode doesn't keep scroll position

Open XYIheng opened this issue 1 year ago • 2 comments

⚠️ This issue respects the following points: ⚠️

  • [X] This is a bug. Not a question or feature request.
  • [X] The topic is not already reported at Issues. (I've searched it).
  • [X] Markor is up to date. See Releases for the latest version. Updates are available from F-Droid and GitHub.
  • [X] 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

https://github.com/gsantner/markor/assets/31406320/8314a63b-0825-422a-82b4-a5355c82ca1a

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

-

XYIheng avatar Jan 02 '24 13:01 XYIheng

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

harshad1 avatar Jan 02 '24 22:01 harshad1

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

XYIheng avatar Jan 03 '24 09:01 XYIheng

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

gsantner avatar Mar 27 '24 04:03 gsantner