mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-12 09:48:37 +12:00
Slight cleanup of mousewheel pr
Fixes theoretical uninitialized variable and micro-optimizes scrollwheel stop code
This commit is contained in:
parent
69f11d82d1
commit
049f852a9c
2 changed files with 13 additions and 12 deletions
|
@ -730,8 +730,9 @@ void pad_settings_dialog::wheelEvent(QWheelEvent *event)
|
|||
key = mouse::wheel_right;
|
||||
}
|
||||
}
|
||||
if (const int y = direction.y())
|
||||
else
|
||||
{
|
||||
const int y = direction.y();
|
||||
bool to_up = event->inverted() ? y < 0 : y > 0;
|
||||
if (to_up)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue