View jumps to top when rotating screen
Describe the bug The following affects a note that is longer than the entire phone screen can show: When scrolling down a note, the app keeps the current view's section when I rotate the screen. However, the current position is lost when I tap into the note for editing mode and rotate the screen. The note will jump to the top in landscape mode. I need to scroll down again, then edit in landscape mode, flip back to vertical mode and the note will jump to the top again. I would first need to close editing mode so that the note is saved to prevent losing the current position.
To Reproduce Steps to reproduce the behavior:
- Open a long note.
- Scroll half way,
- tap in it to edit,
- rotate the screen.
Expected behavior The app must not lose the current position by keeping the current view section in a way that the curser is placed horizontally relative to as it is vertically and vice versa.
Smartphone (please complete the following information):
- Nextcloud Notes version (Android app): 4.1.0
- F-Droid or Play Store: F-Droid
- Android version: 14
- Device: Sony Xperia 5
Server
- Nextcloud version: 26.0.11
- Nextcloud Notes version (server app): 4.9.2
At least in the rich editor mode, this is likely due to the webview. Kind of similar to nextcloud/android#9918