Skip to content

Controls: add option to right-click-drag-zoom relative to the cursor position #2296

@pavlexander

Description

@pavlexander

Feature Suggestion

Feature description: I would like to propose a "smart" zoom. To be more precise, I would like X and Y axis to scale based on the mouse click position, when zooming.

Code example: not applicable. but the repo that I use for testing is here: https://github.com/pavlexander/plot_test

Current behavior

Let's say you want to zoom on a graph in the left side on the plot. You right-mouse button click-hold and start dragging the screen. You expect the window to zoom at the location where the mouse is located, but the actual zoom happens in the center of the screen.

Here is the screenshot illustrating the issue:

image

here is the video.

Animation13

Note the location where pan-to-zoom click is happening, and the location where actual zoom-in occurs. I would like the pan-to-zoom functionality to be mouse-click location aware. Maybe with the SHIFT/CTRL/ALT combination?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions