mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711071 - Check for scrollable in velocity calculations. r=pcwalton
This commit is contained in:
parent
e281ebf836
commit
cc5c466908
@ -190,7 +190,7 @@ abstract class Axis {
|
||||
|
||||
/* Returns the velocity. If the axis is locked, returns 0. */
|
||||
float getRealVelocity() {
|
||||
return mLocked ? 0.0f : mVelocity;
|
||||
return (mLocked || !scrollable()) ? 0.0f : mVelocity;
|
||||
}
|
||||
|
||||
void startPan() {
|
||||
|
Loading…
Reference in New Issue
Block a user