tmf: Keep focused item aligned on vertical zoom
authorPatrick Tasse <patrick.tasse@gmail.com>
Mon, 1 Feb 2016 20:45:37 +0000 (15:45 -0500)
committerPatrick Tasse <patrick.tasse@gmail.com>
Tue, 2 Feb 2016 22:05:25 +0000 (17:05 -0500)
commit48072ae3db7358b66570cacc2ab690e259aa082c
tree822c9ad682d7f51d3d9eafa9156d2a1d82290295
parenta644614def5ab57601538bf89785c92abcd1a686
tmf: Keep focused item aligned on vertical zoom

When doing a vertical zoom with the keyboard, if the selected entry is
visible, make sure that it remains at the same vertical position.

When doing a vertical zoom with the mouse wheel, make sure that the
entry under the mouse cursor remains at the same vertical position.

When repeatedly doing a vertical zoom within a short amount of time, use
the initial event's entry and position for the subsequent alignments.

Fix the method getItemIndexAtY() to find items that are above the
visible bounds.

Change-Id: I803229c5cf5295b855d4615a6756751158b78346
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/65605
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/TimeGraphCombo.java
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
This page took 0.025886 seconds and 5 git commands to generate.