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

long note edition makes view jump

Open hugodu69 opened this issue 2 years ago • 8 comments

Please use GitHub reactions 👍 to show that you are affected by the same issue. Please don't comment if you have no relevant information to add!

Describe the bug

when editing a long note, the view jump each time i enter a new character, not a big jump but like a half line, a little bounce. it is really annoying

To Reproduce Steps to reproduce the behavior:

  1. Open a big note
  2. Click on 'edit' if necessary
  3. Scroll down to a few lines or more
  4. Start editing
  5. the view jump

Expected behavior

editing would be smooth even on large notes ;)

Smartphone (please complete the following information):

  • Nextcloud Notes-Version (android app): v4.0.0
  • App source: F-Droid
  • Android-Version: 6.0.1
  • Device: AZUS_Z00MD
  • System language: English (US)

hugodu69 avatar Jun 14 '23 14:06 hugodu69

Same problem here, since I updated the app 😞😓 Android app v.: 4.0.0 App source: Play store Android version: 13 Device: SM-F926N System language: French

Seba4ksports avatar Jun 21 '23 00:06 Seba4ksports

Are you using the "Rich edit mode" or the "Simple edit mode"? Please also post the version of your Nextcloud server instance.

stefan-niedermann avatar Jun 21 '23 06:06 stefan-niedermann

Are you using the "Rich edit mode" or the "Simple edit mode"?

what do you mean ? I don't see this choice, neither on the android app nor the browser app ?

Please also post the version of your Nextcloud server instance

Nextcloud Hub 3 (25.0.3)

hugodu69 avatar Jun 21 '23 09:06 hugodu69

It's only available on NC 26 and above (that's the reason why we have an issue template).

So you are using the default edit mode. Are you able to provide a video of the mentioned behavior?

I assume we have quite different ideas about what a "note" is. How do you define a "long note" in characters or bytes?

The Notes Android App is not a word processor but meant to handle short notes (like what fits on 1-2 DIN A4 pages). Everything up is a document and not a note anymore. Why is this important? Smartphones have limited processing capacity, and even if it seems to be "just text rendering", this rendering needs to be done whenever you type something. Some of those rendering operations affect the height of the note like:

  • Make headlines bigger
  • Insert images
  • Add margins / paddings to codeblocks
  • etc. So my assumption is that the "cursor jumping" you observed is caused by this.

My proposal; Split your notes into smaller partials, maybe grouped within a category or subcategory. Or reevaluate whether a note taking software is the correct approach to habdle your information. Maybe a full blown word processor like Onlyaoffice fits your needs better?

stefan-niedermann avatar Jun 21 '23 10:06 stefan-niedermann

I see :) You are right, my use of 'long note' is not precise, and I use notes as a text editor because your app is so good, but I did some tests based on your assumptions, and here is a more precise description of the pbm :

  • it doesn't affects a note because it's big in any sens, bytes or character size, but any notes with a markdown effect like title or bold for instance
  • if the note has a lot of titles, the more close to the end of the note you write, the more big the jump will be. In other word, the jump's height is caused by the amount of titles on top of your cursor
  • and the more your note has titles or anything causing the jump, the more time the jump will last. In other words, in a note with 10 titles, the jump will be so quick that you don't always see it, event if it has jumped of 5 cm high

here is a video recording an edit of a note with 100 short titles of level 1, at the position of the 20th title, so around the top of the note (the same position with only 25 titles, the jump is faster, the same note with cursor around the 90th title, the jump is almost one screen high) :

https://github.com/nextcloud/notes-android/assets/34799778/8da14164-cdad-47d9-93e7-fa384e78af9a

hugodu69 avatar Jun 21 '23 11:06 hugodu69

My proposal; Split your notes into smaller partials, maybe grouped within a category or subcategory. Or reevaluate whether a note taking software is the correct approach to habdle your information. Maybe a full blown word processor like Onlyaoffice fits your needs better?

I will find something else indeed, but that's too bad because i liked your app

hugodu69 avatar Jun 21 '23 11:06 hugodu69

Same problem here, since I updated the app 😞😓 Android app v.: 4.0.0 App source: Play store Android version: 13 Device: SM-F926N System language: French

Actually an update of the server (Framagenda.org) seemed to have fixed the issue. Thank you for thus great app!

Seba4ksports avatar Jun 21 '23 14:06 Seba4ksports

I have got what seems the same problem.

Android version: Android 14 Device: Galaxy Tab S7 FE SMT733 System language: Dutch App version: Nextcloud notes 4.1.0 App source: F-Droid Nextcloud: 28.0.3

To reproduce:

  1. Create note.
  2. Paste some pages of text.
  3. Edit in the middle.

It also happens when you reopen the note.

When you stop typing, the view jumps. The cursor seems to return to the place where the note is initially opened.

franshst avatar Mar 18 '24 21:03 franshst