mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Implement mousewheel scroll for selection window
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user