Skip to content

Commit

Permalink
Merge pull request #236 from fidelthomet/patch-1
Browse files Browse the repository at this point in the history
Docs: Update default value for zoom.filter
  • Loading branch information
Fil committed Jun 1, 2021
2 parents 84a5e7b + 506ccf3 commit e9aa6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
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 e9aa6cb

Please sign in to comment.