Skip to content

Commit

Permalink
Add default value to WebSlider attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonp-s committed Oct 4, 2024
1 parent 171edbe commit 7ddd7e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ void WebSliderParameterAttachment::sendInitialUpdate()

object->setProperty ("numSteps", numSteps);
object->setProperty ("interval", range.interval);
object->setProperty ("parameterIndex", parameter.getParameterIndex());
object->setProperty ("parameterIndex", parameter.getParameterIndex());
object->setProperty ("defaultValue", parameter.getDefaultValue());
sliderState.emitEvent (object.get());
attachment.sendInitialUpdate();
}
Expand Down
3 changes: 2 additions & 1 deletion modules/juce_gui_extra/native/javascript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ class SliderState {
label: "",
numSteps: 100,
interval: 0,
parameterIndex: -1,
parameterIndex: -1,
defaultValue: 0
};
this.valueChangedEvent = new ListenerList();
this.propertiesChangedEvent = new ListenerList();
Expand Down

0 comments on commit 7ddd7e1

Please sign in to comment.