tmf: Fix lingering zoom range markers on mouse release
authorPatrick Tasse <patrick.tasse@gmail.com>
Tue, 23 Aug 2016 18:00:08 +0000 (14:00 -0400)
committerPatrick Tasse <patrick.tasse@gmail.com>
Wed, 24 Aug 2016 14:23:13 +0000 (10:23 -0400)
commitc089de78e5e639ef8356c45b9b372a8a6b92c5c2
treeacab9b478ae9bae16ad43e4fea50fd3582c5eee7
parentccefec92e857dd5bc2d8f7afc26d3c66d7d95bef
tmf: Fix lingering zoom range markers on mouse release

When zooming with the right mouse button, when the button is released
the drag state should be reset before the change of window range redraws
so that the zoom drag selection lines and background are not drawn one
last time.

The redraw used to trigger the paint event after a short delay (in the
platform) at which time the drag state had been reset, but a recent
change in the time graph viewer has forced the paint event to happen
immediately by a call to Control.update().

Change-Id: Ifd60e2053bd7736ca37749cb1b299ea0d4852d79
Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com>
Reviewed-on: https://git.eclipse.org/r/79552
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphControl.java
This page took 0.025716 seconds and 5 git commands to generate.