Scrolling now makes sound if cursor moves

This commit is contained in:
Marcus Minhorst 2025-07-12 13:41:44 -04:00 committed by Ricardo Luís Vaz Silva
commit bef78dbe19

View file

@ -225,12 +225,18 @@ class OptionMenu : Menu
{
if (ev.type == UIEvent.Type_WheelUp)
{
MenuScrollViewport(-2, true);
if (MenuScrollViewport(-2, true))
{
MenuSound ("menu/cursor");
}
return true;
}
else if (ev.type == UIEvent.Type_WheelDown)
{
MenuScrollViewport(2, true);
if (MenuScrollViewport(2, true))
{
MenuSound ("menu/cursor");
}
return true;
}
else if (ev.type == UIEvent.Type_Char)