notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

View jumps to top when rotating screen

Open MiMoHo opened this issue 2 years ago • 1 comments

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:

  1. Open a long note.
  2. Scroll half way,
  3. tap in it to edit,
  4. 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

MiMoHo avatar Feb 22 '24 15:02 MiMoHo

At least in the rich editor mode, this is likely due to the webview. Kind of similar to nextcloud/android#9918

joshtrichards avatar Apr 19 '25 15:04 joshtrichards