preventDefault
— callsevent.preventDefault()
before running the handler. Useful for client-side form handling, for example.passive
— improves scrolling performance on touch/wheel events (Svelte will add it automatically where it’s safe to do so)once
— remove the handler after the first time it runs