mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 830926 - AZPC TrackTouch x/y displacement should not be rounded to int. r=ajones,drs
This commit is contained in:
parent
b9cdaea30b
commit
e02d7ce64e
@ -756,11 +756,11 @@ void AsyncPanZoomController::TrackTouch(const MultiTouchInput& aEvent) {
|
||||
// larger swipe should move you a shorter distance.
|
||||
gfxFloat inverseResolution = 1 / CalculateResolution(mFrameMetrics).width;
|
||||
|
||||
int32_t xDisplacement = mX.GetDisplacementForDuration(inverseResolution,
|
||||
timeDelta);
|
||||
int32_t yDisplacement = mY.GetDisplacementForDuration(inverseResolution,
|
||||
timeDelta);
|
||||
if (!xDisplacement && !yDisplacement) {
|
||||
float xDisplacement = mX.GetDisplacementForDuration(inverseResolution,
|
||||
timeDelta);
|
||||
float yDisplacement = mY.GetDisplacementForDuration(inverseResolution,
|
||||
timeDelta);
|
||||
if (fabs(xDisplacement) <= EPSILON && fabs(yDisplacement) <= EPSILON) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user