From 22af6e8ec8fe94fb7405a1f3163b54427d955f7f Mon Sep 17 00:00:00 2001 From: Asdow <20314541+Asdow@users.noreply.github.com> Date: Wed, 25 Dec 2024 21:09:33 +0200 Subject: [PATCH] Implement mousewheel scroll for selection window --- Editor/editscreen.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Editor/editscreen.cpp b/Editor/editscreen.cpp index 1cd2ceb3..8fa8204f 100644 --- a/Editor/editscreen.cpp +++ b/Editor/editscreen.cpp @@ -2954,6 +2954,23 @@ UINT32 WaitForSelectionWindowResponse( void ) } } + // Mousewheel scroll + if (_WheelValue > 0) + { + while (_WheelValue--) + { + ScrollSelWinUp(); + } + } + else + { + while (_WheelValue++) + { + ScrollSelWinDown(); + } + } + _WheelValue = 0; + if ( DoWindowSelection( ) ) { fSelectionWindow = FALSE;