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

event and function name corrected #5550

Closed
wants to merge 3 commits into from
Closed

Conversation

addy1997
Copy link
Contributor

pinchedmoved -> pinchmoved (as given in the aframe docs)
onPinchedMoved() -> onPinchMoved()

addy1997 added 3 commits June 26, 2024 11:11
pinchedmoved event corrected to pinchmoved
onPinchedMoved function name corrected to onPinchMoved
@@ -46,10 +46,10 @@ AFRAME.registerComponent('slider', {

this.el.appendChild(pickerEl);

pickerEl.addEventListener('pinchedmoved', this.onPinchedMoved);
pickerEl.addEventListener('pinchmoved', this.onPinchMoved);
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the example still working?
The event pinchedmoved event comes from pinchable component set by the slider component on pickerEl here. That's not related to hand-tracking-controls where we indeed have an event pinchmoved.

el.emit('pinchedmoved', evt.detail);

I'm not sure what's the difference between those events. The pinchable component may not be needed anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh! I thought it is the pinchmoved event coming from the hand-tracking-controls. Yes, the example should work fine. Neither do I know what is the difference.

@addy1997 addy1997 closed this Jul 8, 2024
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.

2 participants