Skip to content

Commit

Permalink
scrolling-intervention: Add missing dash in adjective "Developer-defi…
Browse files Browse the repository at this point in the history
…ned" (google#4085)

Otherwise, the sentence reads like "Developer" is the subject and "defined" is the verb,
making the sentence as a whole ungrammatical.
  • Loading branch information
cvrebert authored and jpmedley committed Jan 26, 2017
1 parent e8d99db commit 0e24947
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/content/en/updates/2017/01/scrolling-intervention.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ If you call
[preventDefault()](https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault)
in the `touchstart` or first `touchmove` events then you will prevent scrolling.
The problem is that most often listeners will not call `preventDefault()`, but
the browser needs to wait for the event to finish to be sure of that. Developer
defined "passive event listeners" solve this. When you add a touch event with a
`{passive: true}` object as the third parameter in your event handler then you
are telling the browser that the "touchstart" listener will not call
`preventDefault()` and the browser can safely perform the scroll without
the browser needs to wait for the event to finish to be sure of that.
Developer-defined "passive event listeners" solve this. When you add a touch
event with a `{passive: true}` object as the third parameter in your event
handler then you are telling the browser that the `touchstart` listener will not
call `preventDefault()` and the browser can safely perform the scroll without
blocking on the listener. For example:

window.addEventListener("touchstart", func, {passive: true} );
Expand Down

0 comments on commit 0e24947

Please sign in to comment.