Skip to content

Commit

Permalink
Update wheelDelta example in README.md (#264)
Browse files Browse the repository at this point in the history
Updated the wheelDelta() example in order to reflect changes made in commit 4d2a5f1.
  • Loading branch information
mccaskillj authored Apr 5, 2023
1 parent 077f87c commit 95cd670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ If *delta* is specified, sets the wheel delta function to the specified function

```js
function wheelDelta(event) {
return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002);
return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002) * (event.ctrlKey ? 10 : 1);
}
```

Expand Down

0 comments on commit 95cd670

Please sign in to comment.