Made data slider not a real slider

This commit is contained in:
Martin Opat 2025-01-24 14:25:25 +01:00
parent 82b9d2577c
commit 049591ffca
1 changed files with 1 additions and 1 deletions

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);
}