Made data slider not a real slider

This commit is contained in:
Martin committed 2025-01-24 14:25:25 +01:00
1 parent 82b9d2577c
commit 049591ffca
1 file changed
+1 -1
+1 -1
View File
@@ -162,7 +162,7 @@ void Widget::tick(double fps) {
ImGui::Text(this->fps);
ImGui::SetNextItemWidth(20.0f * ImGui::GetFontSize());
if (ImGui::SliderInt("Day of year", &this->date, 1, 365, "%d", ImGuiSliderFlags_NoInput)) {
if (ImGui::DragInt("Day of year", &this->date, 1, 1, 365, "%d")) {
this->dateChanged = true;
parseDate(this->dateString, this->date);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.