modify the comment

This commit is contained in:
Spedon
2023-03-14 01:53:19 +08:00
parent f1820a851c
commit dc32f66f2c

View File

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