BView: Check scroll delta isn't 0
This commit is contained in:
parent
5b6c94c591
commit
b2404e2a39
@ -4417,10 +4417,10 @@ BView::MessageReceived(BMessage* message)
|
||||
if (deltaX == 0.0f && deltaY == 0.0f)
|
||||
break;
|
||||
|
||||
if (horizontal != NULL)
|
||||
if (horizontal != NULL && deltaX != 0.0f)
|
||||
ScrollWithMouseWheelDelta(horizontal, deltaX);
|
||||
|
||||
if (vertical != NULL)
|
||||
if (vertical != NULL && deltaY != 0.0f)
|
||||
ScrollWithMouseWheelDelta(vertical, deltaY);
|
||||
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user