lttng-scope icon indicating copy to clipboard operation
lttng-scope copied to clipboard

Selecting of a visible event in the event table result in a move of the event table

Open PSRCode opened this issue 7 years ago • 2 comments

1- Do a selection inside the thread view 2- The event table will update to the selection 3- Click on a visible event in the event table 4- Other view update 5- The event table will move even if it is not necessary.

PSRCode avatar Feb 16 '18 21:02 PSRCode

Not sure if a bug ... in the end ... it was less obvious that it is refreshed to place the selected event in the middle of the view. In a small view it looks weird.

We might want to revisit how we do this.

PSRCode avatar Feb 16 '18 21:02 PSRCode

Yeah it's a known limitation of the current implementation. Turns out that it is not straightforward to determine "is the selected event currently in the visible table area?". It should be doable, but would probably require tracking the scrollbar position by ourselves.

For now I just had it recenter on every selection. But it's a very valid comment, if the new selection is already visible then it should not recenter.

ghost avatar Feb 19 '18 20:02 ghost