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

关闭自动交互后,没有设计HitArea的模型素材,无法触发model.on('hit')或者model.on('pointerdown') #154

Open
Yorenzz opened this issue Jun 5, 2024 · 0 comments

Comments

@Yorenzz
Copy link

Yorenzz commented Jun 5, 2024

当我使用没有设计HitArea的模型素材时,未关闭自动交互即autoInteract为true时,可以触发model.on('hit')或者model.on('pointerdown')
当我关闭了自动交互即autoInteract为false时,即使增加了canvasElement.addEventListener('pointerdown', (event) => model.tap(event.clientX, event.clientY));,也无法触发model.on('hit')或者model.on('pointerdown')
由于素材不方便外显,若需要最小实现,我再找找别的素材来用,感谢

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