diff --git a/.eslintrc b/.eslintrc index a0dbf0b..ae3c197 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,9 +1,5 @@ { - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "prettier" - ], + "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"], "parser": "@typescript-eslint/parser", "plugins": ["@typescript-eslint"] } diff --git a/example/src/utils.ts b/example/src/utils.ts index afce248..f1bba9f 100644 --- a/example/src/utils.ts +++ b/example/src/utils.ts @@ -18,7 +18,13 @@ export const useWheelEvents = () => { if (e.ctrlKey || e.altKey) return; setEvents((prev) => { - const ev: Event = { deltaX: e.deltaX, deltaY: e.deltaY, deltaZ: e.deltaZ, timeStamp: e.timeStamp, isIntentional }; + const ev: Event = { + deltaX: e.deltaX, + deltaY: e.deltaY, + deltaZ: e.deltaZ, + timeStamp: e.timeStamp, + isIntentional, + }; const next = [ev, ...prev]; while (next.length > 100) next.pop(); return next;