Skip to content

Commit e9aa6cb

Browse files
authored
Merge pull request #236 from fidelthomet/patch-1
Docs: Update default value for zoom.filter
2 parents 84a5e7b + 506ccf3 commit e9aa6cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)