Cutter: Disassembly arrows can desynchronize from text

Created on 14 Jul 2019  路  3Comments  路  Source: rizinorg/cutter

Environment information

  • Operating System: Arch Linux
  • Cutter version: 4b9a4ff2e2f5e5ddd468415eae06810bd9e37389

Describe the bug

When navigating disassembly the arrows can desyncrhronize from text. Most likely caused by text parts containing more lines than displayed so arrows first trigger text widget builtin scrolling before cutter scrolling.

To Reproduce

Steps to reproduce the behavior:

  1. Change disassembly window height so that last line is partially visible (there might be other requirements).
  2. Scroll down using down arrow key.
  3. Keep an eye between arrow position relative to text, when cursor reaches bottom text should move without arrows moving. Moving further will cause arrows to move .

Not having #1656 may make testing a bit more difficult as arrows aren't correctly aligned even in normal conditions.

Expected behavior

Arrows alignment is properly maintained while navigating with arrows.

Additional context

Initially noticed by @optizone

BUG UI

All 3 comments

I see that there is some magic going on involving two nested scroll areas.

Understood how the problem happens. This doesn't get triggered when moving with keyboard. Tried resetting scrollbar position in moveCursorRelative. That prevents desynchronization with arows, but that causes cursor to go out of screen.

I have version which seems to be working, but it's quite dirty. It doesn't fix the problem with zooming.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xarkes picture xarkes  路  4Comments

mirh picture mirh  路  3Comments

optizone picture optizone  路  3Comments

Pamplemousse picture Pamplemousse  路  3Comments

karliss picture karliss  路  3Comments