Skip to content

zoom rubberband behaviour #6176

Closed
Closed
@mzechmeister

Description

@mzechmeister

The zoom modes I have seen in plotly are based on drawing rectangles and boxes by the user.
In qt applications I have experienced another nice zoom behaviour; it seems it is called "rubberband drag".
It works like that:
A right click creates a virtual center and when moving the mouse with the right button hold pressed, the zoom depends on the relative coordinates with respected to the virtual point.
It is a smooth zoom and feels similar to mousewheel zoom, but in two dimensions and symmetrically.

Can this be implemented as zoom mode option in plotly, too? Is there a quick hack to get it now?

Added: It just come to my mind that it also similar to a two finger zoom, also called pinch zoom (e.g. #480). That might be starting point.

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