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

Sliders fire OSC messages when the value gets updated from the server #63

Open
SolfaMode opened this issue Feb 9, 2022 · 0 comments
Open

Comments

@SolfaMode
Copy link

Steps to reproduce:
Given a slider with OSC address X.
Update the float value of X in the OSC Query server and send it using Web Socket.

Expected result:
Javascript updates the slider and done

What happens:
oscqueryhtml additionally sends a new value for X back to the server.
This can produce an infinite update-cycle.

Workaround:
In index.js applyOSCMessageValue() set a global flag before targetElem.rangeSlider.update({value: value}, false);
Clean that flag after the call.
In userinput.js controlEvent(e) avoid sending value if flag is set.

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