From 95cd670cf2322b455eb6b04e95a5fb1fc963f269 Mon Sep 17 00:00:00 2001 From: Jordan McCaskill Date: Wed, 5 Apr 2023 02:12:00 -0600 Subject: [PATCH] Update wheelDelta example in README.md (#264) Updated the wheelDelta() example in order to reflect changes made in commit 4d2a5f1. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 256e4cce..a1aba131 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ If *delta* is specified, sets the wheel delta function to the specified function ```js function wheelDelta(event) { - return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002); + return -event.deltaY * (event.deltaMode === 1 ? 0.05 : event.deltaMode ? 1 : 0.002) * (event.ctrlKey ? 10 : 1); } ```