Skip to content

Way to have browser still handle horizontal/vertical scrolling and use svelte-gesture just for pinch on a div #1

@rberger

Description

@rberger

It seems that pinch sets touch-action to none for the element that use:pinch
I'm wrapping a pdf viewer which has a canvas inside. I'm using the svelte-pinch to update the scale value of the pdf viewer using the pdfviewer.scale function. There isn't an equivilent function for scrolling.

So I would like the browser to still scroll the pdfviewer canvas.

Is there a way to do that?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions