From dc32f66f2c1506dc98898dda22a2ea9ac2869793 Mon Sep 17 00:00:00 2001 From: Spedon Date: Tue, 14 Mar 2023 01:53:19 +0800 Subject: [PATCH] modify the comment --- assets/ts/trackMouse.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/ts/trackMouse.ts b/assets/ts/trackMouse.ts index 822850c..78dfecc 100644 --- a/assets/ts/trackMouse.ts +++ b/assets/ts/trackMouse.ts @@ -76,7 +76,7 @@ export const handleOnMove = (e: MouseEvent): void => { distanceFromLast(e.clientX, e.clientY) > window.innerWidth / thresholdSensitivityArray[thresholdIndex] ) { - // images showing array + // calculate the actual index const imageIndex = globalIndex % imagesArrayLen // show top image and change index activate(imageIndex, e.clientX, e.clientY)