diff --git a/src/helpers/usePreventTouch.js b/src/helpers/usePreventTouch.js index e98bd23..b101e4b 100644 --- a/src/helpers/usePreventTouch.js +++ b/src/helpers/usePreventTouch.js @@ -16,7 +16,7 @@ function usePreventTouch(elementRef) { element.removeEventListener("touchstart", prevent3DTouch); } }; - }, [elementRef.current]); + }, [elementRef]); } export default usePreventTouch;