Skip to content

Commit

Permalink
Set proper value in number input when the range constrains applied
Browse files Browse the repository at this point in the history
  • Loading branch information
martonmiklos authored and ad3154 committed Dec 18, 2024
1 parent 5ce06dd commit 756ae39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataMaskRenderAreaComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ void DataMaskRenderAreaComponent::mouseUp(const MouseEvent &event)
inputNumberSlider->setValue(scaledValue, NotificationType::dontSendNotification);
inputNumberSlider->setSize(400, 80);

inputNumberListener.set_last_value(clickedNumber->get_value());
inputNumberListener.set_last_value(inputNumberSlider->getValue());
inputNumberListener.set_target(clickedNumber);
inputNumberSlider->addListener(&inputNumberListener);

Expand Down

0 comments on commit 756ae39

Please sign in to comment.