wix-incubator/DetoxInstruments

Make "Zoom In" (Cmd+Plus) follow mouse cursor as an origin for zooming

noomorph opened this issue · 1 comments

Is your feature request related to a problem? Please describe.

As of now, "Zoom In" (Cmd+Plus) always zooms towards the center of the timeline which is not convenient when you work without a trackpad and have no means to resort to the default pinch-to-zoom gesture.

Describe the solution you'd like

An implementation of "Zoom In" command could have used a mouse cursor position on the timeline as an origin for zooming.

Describe alternatives you've considered

Alternatively, using a selected X coordinate (via previous mouse click) as an origin could have also worked out, I guess.

Agreed, the current behavior is not optimal. It was a quick implementation to allow users without a trackpad to be able to zoom in. I will have to play around to see what makes more sense, taking the user cursor always, or if there is a selection on the plot, zoom toward that.