| Index: Source/core/page/TouchAdjustment.cpp
|
| diff --git a/Source/core/page/TouchAdjustment.cpp b/Source/core/page/TouchAdjustment.cpp
|
| index 9eaa251687ce24e6a1dc1ef53f521dd3564f7165..74c7f2022277dac39becbf72a31a41f1e1fff2af 100644
|
| --- a/Source/core/page/TouchAdjustment.cpp
|
| +++ b/Source/core/page/TouchAdjustment.cpp
|
| @@ -344,7 +344,7 @@ float hybridDistanceFunction(const IntPoint& touchHotspot, const IntRect& touchR
|
|
|
| // Convert from frame coordinates to window coordinates.
|
| rect = subtarget.node()->document()->view()->contentsToWindow(rect);
|
| -
|
| +
|
| float radiusSquared = 0.25f * (touchRect.size().diagonalLengthSquared());
|
| float distanceToAdjustScore = rect.distanceSquaredToPoint(touchHotspot) / radiusSquared;
|
|
|
|
|