mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 00:05:36 +00:00
Bug 1254252 - Have Axis::ClampOriginToScrollableRect just return the original value if it falls with in the page bounds. r=kats
This commit is contained in:
parent
565a35d4d5
commit
24f338ba5d
@ -450,7 +450,7 @@ CSSCoord Axis::ClampOriginToScrollableRect(CSSCoord aOrigin) const
|
||||
} else if (origin + GetCompositionLength() > GetPageEnd()) {
|
||||
result = GetPageEnd() - GetCompositionLength();
|
||||
} else {
|
||||
result = origin;
|
||||
return aOrigin;
|
||||
}
|
||||
|
||||
return result / zoom;
|
||||
|
Loading…
Reference in New Issue
Block a user