Skip to content
New issue

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

how to release (ignore ) mouse control (event) while mouse move outside the canvas #560

Open
3 tasks done
icoco opened this issue Jun 9, 2023 · 0 comments
Open
3 tasks done

Comments

@icoco
Copy link

icoco commented Jun 9, 2023

Description

a little problem, as topic, how to ignore the mouse event while mouse outside the canvas of threejs , seem not easy way ( option maybe ? ) can do this purpose?

sorry for this question, while the editor entry 'Run' mode, looks the mouse event was handle in whole window but only the canvas, how to say, some time, we want only handle the mouse event on the canvas, if outside the canvas then pause the mouse and back then consume .

if some switch option can do this purpose? thanks

Version
  • 0.98.41
Platform
  • Web Version
  • Windows
  • Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant