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

stage.setInteractionDelegate doesn't work #1264

Closed
beeglebug opened this issue Dec 11, 2014 · 2 comments
Closed

stage.setInteractionDelegate doesn't work #1264

beeglebug opened this issue Dec 11, 2014 · 2 comments
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.
Milestone

Comments

@beeglebug
Copy link

It looks like there area few problems with it:

It doesn't set stage._interactiveEventsAdded, so when the renderer runs, it calls stage.interactionManager.setTarget(this), which wipes out the newly added delegate.

Also, because it calls interactionManager.setTargetDomElement directly, rather than setTarget, the target and resolution properties are not set.

I have an idea of how to fix it, and potentially add some functionality at the same time, i'll do a PR later.

@englercj englercj mentioned this issue Dec 26, 2014
@englercj englercj added 🕷 Bug Verified that it’s actually a legit bug that exists in the current release. Interaction Manager labels Jan 8, 2015
@englercj englercj added this to the v3.0 milestone Jan 8, 2015
@GoodBoyDigital
Copy link
Member

This should work correctly in v3 now ->
renderer.plugins.interactiveManager.setTargetElement( element )
cheers! 👍

@lock
Copy link

lock bot commented Feb 26, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🕷 Bug Verified that it’s actually a legit bug that exists in the current release.
Projects
None yet
Development

No branches or pull requests

3 participants