lttng / lttng-scope

A trace viewer and analyzer for LTTng kernel and user space traces
https://lttng.org/beta/#lttng-scope
Eclipse Public License 1.0
28 stars 6 forks source link

timegraph: Use mouse position/selection as zoom pivot #20

Closed ghost closed 7 years ago

ghost commented 7 years ago

Currently the zoom "pivot" point is simply the center of the visible area. It should instead follow, in order of priority:

The first condition could also be disabled through an appropriate debug option.

ghost commented 7 years ago

After a little more discussion, we've decide to also support selection time ranges (not just single timestamps) as zoom pivots, by using the center of the range. I've updated the first post accordingly.