add 'change-on-release' trackbar property & fix mouseRelease event timing

This commit is contained in:
MihailRis
2024-07-28 12:38:31 +03:00
parent 3fee1072b7
commit 8ca12127db
4 changed files with 22 additions and 2 deletions
+3
View File
@@ -416,6 +416,9 @@ static std::shared_ptr<UINode> readTrackBar(UiXmlReader& reader, const xml::xmle
if (element->has("track-color")) {
bar->setTrackColor(element->attr("track-color").asColor());
}
if (element->has("change-on-release")) {
bar->setChangeOnRelease(element->attr("change-on-release").asBool());
}
return bar;
}