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 unregister click event #58

Closed
Dhamu143 opened this issue Aug 25, 2017 · 2 comments
Closed

how to unregister click event #58

Dhamu143 opened this issue Aug 25, 2017 · 2 comments

Comments

@Dhamu143
Copy link

hello ,
as I load AR view window.addEventListener('object_clicked') gets registered. if i change view and then again come into the AR view this click event gets registered multiple time. so as I click on object it gets clicked more than one time(time that event is registered)

so how to unregistered that object_clicked event ?

here is the code to registered object clicked. so do i just need to remove event listener or i have to deal with this other objects also.?
var click_plugin = awe.plugins.view('object_clicked');
if (click_plugin) {
click_plugin.register();
click_plugin.enable();
}
var gyro_plugin = awe.plugins.view('gyro');
if (gyro_plugin) {
gyro_plugin.enable();
}
var mouse_plugin = awe.plugins.view('mouse');
if (mouse_plugin) {
mouse_plugin.enable();
}
var render_effects_plugin = awe.plugins.view('render_effects');
if (render_effects_plugin) {
render_effects_plugin.enable();
}
window.addEventListener('object_clicked', function(e) {});

please explain in brief

@Dhamu143
Copy link
Author

is there any update on this issue?

@awe-media
Copy link
Owner

This github repos is now focused on supporting the development of apps using awe.js on the awe.media platform. You can still access our older awe.js library as the deprecated branch, however we no longer support that code.

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

2 participants