Skip to content

Commit 506ccf3

Browse files
authored
Docs: Update default value for zoom.filter
Commit ab4bc64 changed the default value for `zoom.filter`. This was not reflected in the documentation. This PR resolves that.
1 parent 84a5e7b commit 506ccf3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ If *filter* is specified, sets the filter to the specified function and returns
162162

163163
```js
164164
function filter(event) {
165-
return !event.ctrlKey && !event.button;
165+
return (!event.ctrlKey || event.type === 'wheel') && !event.button;
166166
}
167167
```
168168

0 commit comments

Comments
 (0)