Skip to content

[Doc EN]: event.md add space to new part #1363

New issue

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

Merged
merged 10 commits into from
Jan 5, 2018
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