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 <sherwinhb@gmail.com>
1 parent b1a850a commit 28eac7f

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
@@ -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)