Skip to content

Commit

Permalink
Docs: Update default value for zoom.filter
Browse files Browse the repository at this point in the history
Commit ab4bc64 changed the default value for `zoom.filter`. This was not reflected in the documentation. This PR resolves that.
  • Loading branch information
fidelthomet committed Jun 1, 2021
1 parent 84a5e7b commit 506ccf3
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 @@ -162,7 +162,7 @@ If *filter* is specified, sets the filter to the specified function and returns

```js
function filter(event) {
return !event.ctrlKey && !event.button;
return (!event.ctrlKey || event.type === 'wheel') && !event.button;
}
```

Expand Down

0 comments on commit 506ccf3

Please sign in to comment.