|
|
@ -470,6 +470,7 @@ The following modifiers are available:
|
|
|
|
|
|
|
|
|
|
|
|
* `preventDefault` — calls `event.preventDefault()` before running the handler
|
|
|
|
* `preventDefault` — calls `event.preventDefault()` before running the handler
|
|
|
|
* `stopPropagation` — calls `event.stopPropagation()`, preventing the event reaching the next element
|
|
|
|
* `stopPropagation` — calls `event.stopPropagation()`, preventing the event reaching the next element
|
|
|
|
|
|
|
|
* `stopImmediatePropagation` - calls `event.stopImmediatePropagation()`, preventing other listeners of the same event from being fired.
|
|
|
|
* `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
|
|
|
|
* `passive` — improves scrolling performance on touch/wheel events (Svelte will add it automatically where it's safe to do so)
|
|
|
|
* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase
|
|
|
|
* `capture` — fires the handler during the *capture* phase instead of the *bubbling* phase
|
|
|
|
* `once` — remove the handler after the first time it runs
|
|
|
|
* `once` — remove the handler after the first time it runs
|
|
|
|