Skip to content

Pan working but not zoom #79

@waterbuckit

Description

@waterbuckit

Maybe this isn't necessarily an issue with the plugin, but I cannot seem to get zoom to work at all, panning works just fine? After reading through the other issues, I noticed that I was required to add a viewbox, which I did, but zoom still refuses to work? I have checked that the events are firing and sure enough, they are. Width and height are just 100% respectively.

let draw = SVG()
    .addTo(`#${svgId}`)
    .size(width, height);

imageContainer = draw
    .nested()
    .viewbox(0, 0, 100, 100)
    .panZoom({zoomMin : 1, zoomMax:20});
image = imageContainer.image(imagePath);
image
    .size(width,height);

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