Skip to content

Commit 28eac7f

Browse files
docs(passive): replace wrong option
the option must be passive instead of handleTouch. Co-authored-by: Sherwin Heydarbeygi <[email protected]>
1 parent b1a850a commit 28eac7f

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
@@ -138,7 +138,7 @@ var options = {
138138
boundingBoxContainer: document.body,
139139
// If true, the events related to handleTouch use passive listeners in
140140
// order to improve performance for touch devices.
141-
handleTouch: false,
141+
passive: false,
142142
};
143143

144144
new Drift(document.querySelector('img'), options);

0 commit comments

Comments
 (0)