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

add bubbling and propagation of events throughout Object3D tree #8368

Closed
wants to merge 2 commits into from

Conversation

endel
Copy link
Contributor

@endel endel commented Mar 15, 2016

As proposed on issue #8365, this pull-request enhances event handling on Object3D trees.

It handles bubbles event attribute and adds stopPropagation() method, only for events triggered from Object3D instances - this feature doesn't make sense for other kind of objects such as Material, Texture, etc, AFAIK.

There's a simple test case for this on test/unit/core/Object3D.js.

It would be great to use the native Event / CustomEvent for this feature in the future - which might break existing applications though.

Feedback are welcome!
Thanks

.editorconfig Outdated
@@ -0,0 +1,3 @@
[*.js]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you not include this file?

@endel
Copy link
Contributor Author

endel commented Mar 15, 2016

Thanks for your feedback @mrdoob, I've made the changes you suggested and squashed the commits. :)

@WestLangley
Copy link
Collaborator

Adding this to the examples would be really helpful, I think.

@mrdoob
Copy link
Owner

mrdoob commented Mar 17, 2016

Agreed! Would it be possible to add an example to show this?

@endel
Copy link
Contributor Author

endel commented Mar 22, 2016

Hey! I've finally added an example to this. I'm not sure if the title and category is clear enough. What do you guys think?

@endel
Copy link
Contributor Author

endel commented Aug 18, 2016

Are there any plans to merge this, @mrdoob ? :)

I see that GitHub now says that "This branch has conflicts that must be resolved", I could have a look and fix them if you want to.

Cheers!

@ScarletFlash
Copy link

Does anybody work on this feature?

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

Successfully merging this pull request may close these issues.

5 participants