fix: get rid of duplicate scale events (#5404)
This commit is contained in:
@@ -54,7 +54,11 @@ float BaseWidget::scale() const
|
||||
|
||||
void BaseWidget::setScale(float value)
|
||||
{
|
||||
// update scale value
|
||||
if (this->scale_ == value)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
this->scale_ = value;
|
||||
|
||||
this->scaleChangedEvent(this->scale());
|
||||
|
||||
Reference in New Issue
Block a user