Skip to content
This repository was archived by the owner on Mar 1, 2022. It is now read-only.
This repository was archived by the owner on Mar 1, 2022. It is now read-only.

Allow dragging & zooming of canvas #40

@MattIPv4

Description

@MattIPv4

We should allow the user to build a diagram as big and as complex as they'd like.

To support this, we should allow the user to drag the canvas around (using middle mouse button) so that they can add nodes in places that would be default be off-screen.

This also acts as a great solution for if nodes end up stuck under the new/save controls, the user can just drag the canvas so they aren't under the controls.

Further, we should also allow the user to zoom the canvas in/out so if they have a large, complex diagram they could view the whole thing on the screen at once.

This should be done with cmd/ctrl + scroll -- we will need to hijack this from the browser's default zoom behaviour when in the diagram editor view.

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