From 868ba05a13c3144fe3eb6f17523932a0ee73dc79 Mon Sep 17 00:00:00 2001 From: ocornut Date: Fri, 15 Aug 2014 16:40:31 +0100 Subject: [PATCH] Slowed down mouse wheel scrolling speed in combo boxes --- imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imgui.cpp b/imgui.cpp index ce5bf7a0..1343eda4 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -129,7 +129,6 @@ - columns: columns header to act as button (~sort op) and allow resize/reorder - columns: user specify columns size - combo: turn child handling code into popup helper - - combo: slow down mouse wheel scroll speed - list selection, concept of a selectable "block" (that can be multiple widgets) - menubar, menus - plot: plot lines draws 1 item too much? @@ -1259,7 +1258,8 @@ void NewFrame() else { // Scroll - window->NextScrollY -= g.IO.MouseWheel * window->FontSize() * 5.0f; + const int scroll_lines = (window->Flags & ImGuiWindowFlags_ComboBox) ? 3 : 5; + window->NextScrollY -= g.IO.MouseWheel * window->FontSize() * scroll_lines; } }