Skip to content

Commit

Permalink
[Doc EN]: event.md add space to new part (#1363)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
MachinisteWeb authored and chrisvfritz committed Jan 5, 2018
1 parent 3de11ad commit 7fa317a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/v2/guide/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,7 @@ Unlike the other modifiers, which are exclusive to native DOM events, the `.once
<div v-on:scroll.passive="onScroll">...</div>
```

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.
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.

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

Expand Down

0 comments on commit 7fa317a

Please sign in to comment.