mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-22 11:57:00 +00:00
Slowed down mouse wheel scrolling speed in combo boxes
This commit is contained in:
parent
152878571e
commit
868ba05a13
@ -129,7 +129,6 @@
|
|||||||
- columns: columns header to act as button (~sort op) and allow resize/reorder
|
- columns: columns header to act as button (~sort op) and allow resize/reorder
|
||||||
- columns: user specify columns size
|
- columns: user specify columns size
|
||||||
- combo: turn child handling code into popup helper
|
- 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)
|
- list selection, concept of a selectable "block" (that can be multiple widgets)
|
||||||
- menubar, menus
|
- menubar, menus
|
||||||
- plot: plot lines draws 1 item too much?
|
- plot: plot lines draws 1 item too much?
|
||||||
@ -1259,7 +1258,8 @@ void NewFrame()
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Scroll
|
// 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user