Skip to content

Commit 8e98f4b

Browse files
MachinisteWebJinjiang
authored andcommitted
[Doc EN]: event.md add space to new part (#1363)
* New in with + symbol Signed-off-by: Bruno Lesieur <[email protected]> * Review of 2.5.0 doc Signed-off-by: Bruno Lesieur <[email protected]> * Review Signed-off-by: Bruno Lesieur <[email protected]> * Fix syntax typo Signed-off-by: Bruno Lesieur <[email protected]> * Add space between new line of documentation Signed-off-by: MachinisteWeb <[email protected]> * Add @posva review Signed-off-by: MachinisteWeb <[email protected]>
1 parent 06f423e commit 8e98f4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/v2/guide/events.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,7 @@ methods: {
214214
<div v-on:scroll.passive="onScroll">...</div>
215215
```
216216

217-
In addition to these modifiers, Vue provides `.passive` modifier to improve the performance on mobile especially.
218-
For example, when performing a scroll, the browser will scroll after the process has completed because the browser doesn’t know if the event is going to call `event.preventDefault()` within its handler.
219-
`.passive` modifier can be used to tell the browser that this event will not cancel the default event behavior in advance.
217+
In addition to these modifiers, Vue provides `.passive` modifier to improve the performance on mobile especially. For example, when performing a scroll, the browser will scroll after the process has completed because the browser doesn’t know if the event is going to call `event.preventDefault()` within its handler. `.passive` modifier can be used to tell the browser that this event will not cancel the default event behavior in advance.
220218

221219
<p class="tip">Don't use `.passive` and `.prevent` together. Passive handler can't prevent default event.</p>
222220

0 commit comments

Comments
 (0)