Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphTooltipHandler.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphTooltipHandler.java b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphTooltipHandler.java
index 5d442da127..a73a67c168 100644
--- a/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphTooltipHandler.java
+++ b/tmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/tmf/ui/widgets/timegraph/widgets/TimeGraphTooltipHandler.java
@@ -129,7 +129,7 @@ public class TimeGraphTooltipHandler extends TmfAbstractToolTipHandler {
List<IMarkerEvent> markers = timeGraphControl.getMarkers();
List<IMarkerEvent> retVal = new ArrayList<>();
if (markers != null) {
- // Minimum of 5 pixels for the dead zone
+ // Include markers up to 5 pixels left and right of cursor
int fuzz = 5;
long fuzzStart = timeGraphControl.getTimeAtX(pt.x - fuzz);
long fuzzEnd = timeGraphControl.getTimeAtX(pt.x + fuzz);
@@ -138,7 +138,7 @@ public class TimeGraphTooltipHandler extends TmfAbstractToolTipHandler {
long duration = marker.getDuration();
long startTime = marker.getTime();
long endTime = startTime + duration;
- if ((startTime < fuzzEnd) && (endTime > fuzzStart)) {
+ if ((startTime <= fuzzEnd) && (endTime >= fuzzStart)) {
retVal.add(marker);
}
}

Back to the top