Closed caenopy closed 2 months ago
Build the WebViewPluginDemo in the JUCE 8 preview and look at
properties.numSteps
JuceSlider()
getNumSteps()
juce_ParameterAttachments.cpp
void WebSliderParameterAttachment::sendInitialUpdate() { const auto range = parameter.getNormalisableRange(); DynamicObject::Ptr object { new DynamicObject }; object->setProperty (detail::WebSliderRelayEvents::Event::eventTypeKey, "propertiesChanged"); object->setProperty ("start", range.start); object->setProperty ("end", range.end); object->setProperty ("skew", range.skew); object->setProperty ("name", parameter.getName (100)); object->setProperty ("label", parameter.getLabel()); object->setProperty ("numSteps", parameter.getNumSteps()); object->setProperty ("interval", range.interval); sliderState.emitEvent (object.get()); attachment.sendInitialUpdate(); }
getNumSteps() should return something like ((range.end - range.start) / range.interval) + 1).
((range.end - range.start) / range.interval) + 1).
macOS
Ventura 13.3
64-bit
No response
develop
I have not tested against the develop branch
Thank you for reporting the issue.
A fix is now available on the develop branch d2f3e920f7335e6daa70251fbc453c77137f01f9.
Detailed steps on how to reproduce the bug
Build the WebViewPluginDemo in the JUCE 8 preview and look at
properties.numSteps
inJuceSlider()
getNumSteps()
is called, like injuce_ParameterAttachments.cpp
here:What is the expected behaviour?
getNumSteps()
should return something like((range.end - range.start) / range.interval) + 1).
Operating systems
macOS
What versions of the operating systems?
Ventura 13.3
Architectures
64-bit
Stacktrace
No response
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the
develop
branchI have not tested against the
develop
branchCode of Conduct