We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pannable
export function pannable(node: HTMLElement): ReturnType<Action>
Creates panstart, panmove, panend events so you can drag elements.
panstart
panmove
panend
<div class="box" use:pannable on:panstart={handlePanStart} on:panmove={handlePanMove} on:panend={handlePanEnd} ></div>
Demo: https://svelte.dev/tutorial/actions
The text was updated successfully, but these errors were encountered:
Hey @sw-yx! Don't know what you had planned for this issue, but I've noticed that this Demo doesn't work on mobile, any ideas why that would be?
Sorry, something went wrong.
no idea, i just copied it straight from the official tutorial..
No branches or pull requests
export function pannable(node: HTMLElement): ReturnType<Action>
Creates
panstart
,panmove
,panend
events so you can drag elements.Demo: https://svelte.dev/tutorial/actions
The text was updated successfully, but these errors were encountered: