markor
markor copied to clipboard
Bug report: changing edit to view mode doesn't keep scroll position
⚠️ 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
- Open a long text file
- Scroll down and append some txt at the end of the file
- Click view mode
- 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
-
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 If not edit, just scroll to the end of the file, then change view mode. The bug also occurs
duplicate #1025 . Please search issues before opening, thanks.