Skip to content

Conversation

@edsilv
Copy link
Contributor

@edsilv edsilv commented Aug 7, 2019

Description:

If the A-Frame scene is embedded, using ionic-range slider controls outside the scene and releasing inside the scene causes the slider values to be 0.

ezgif com-video-to-gif

Changes proposed:

  • only emit cursor mouseup if mousedown originated on scene

* in case user mousedowned one entity, dragged to another, and mouseupped.
*/
onCursorUp: function (evt) {
if (!this.isCursorDown) {
Copy link
Member

Choose a reason for hiding this comment

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

Can we do this a oneliner? if (!this.isCursorDown) { return; }

@dmarcos
Copy link
Member

dmarcos commented Aug 8, 2019

Thanks!

@dmarcos dmarcos merged commit 66827cc into aframevr:master Aug 8, 2019
@edsilv edsilv deleted the cursor-fix branch August 9, 2019 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants