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

onChange callback on range slider doesn't provide changed value #42

Open
polyclick opened this issue May 11, 2017 · 0 comments
Open

onChange callback on range slider doesn't provide changed value #42

polyclick opened this issue May 11, 2017 · 0 comments

Comments

@polyclick
Copy link

When creating a new slider with an onChange callback, the changed value is not provided to the callback function. This does work with a normal number input.

// logs the changed value
this.gui.addPanel()
  .addGroup()
    .addSubGroup()
      .addNumberInput(obj, `value`, { onChange: (changedVal) => { console.log(changedVal) } })

Slider:

// logs -undefined-
this.gui.addPanel()
  .addGroup()
    .addSubGroup()
        .addSlider(obj, `value`, `range`, { onChange: (changedVal) => { console.log(changedVal) } })
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

1 participant