Skip to content

Commit 0762540

Browse files
authored
Merge pull request #285 from stampyzfanz/patch-1
Improve the accuracy of the docs for beforeMouseDown
2 parents 8d4500e + eaf3bd0 commit 0762540

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ zoomable only when `Alt` key is down.
135135
## Ignore mouse down
136136

137137
If you want to disable panning or filter it by pressing a specific key, use the
138-
`beforeMouseDown()` option. E.g.
138+
`beforeMouseDown()` option. Note that it only works when the mouse initiates
139+
the panning. E.g.
139140

140141
``` js
141142
panzoom(element, {

0 commit comments

Comments
 (0)