We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I used addEventListener with resize event, but it doesn't work. Other events like mouseup, mousemove, works really well.
resize
mouseup
mousemove
useEffect(() => { if (newWindowDocument) { newWindowDocument.addEventListener('mouseup', handleMouseUpImage) newWindowDocument.addEventListener('mousemove', handleMouseMoveImage) } return () => { newWindowDocument?.removeEventListener('mouseup', handleMouseUpImage) newWindowDocument?.removeEventListener('mousemove', handleMouseMoveImage) } }, []) useEffect(() => { if (newWindowDocument) { newWindowDocument.addEventListener('resize', handleResize) } }, [scrollRef])
Is it natural that it can't detect it?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I used addEventListener with
resize
event, but it doesn't work.Other events like
mouseup
,mousemove
, works really well.Is it natural that it can't detect it?
The text was updated successfully, but these errors were encountered: