aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-31 18:13:41 +0800
committercrupest <crupest@outlook.com>2020-12-31 18:13:41 +0800
commit0026d1f9b50270cd96d8a2a44c55410bc9dc2f7a (patch)
treebeaa7afd7fcd4fd6eb06276721cafa748e490424 /src/ui/render
parent7b6ca6e8a158868da316351b64e64ab1cdb5872c (diff)
downloadcru-0026d1f9b50270cd96d8a2a44c55410bc9dc2f7a.tar.gz
cru-0026d1f9b50270cd96d8a2a44c55410bc9dc2f7a.tar.bz2
cru-0026d1f9b50270cd96d8a2a44c55410bc9dc2f7a.zip
...
Diffstat (limited to 'src/ui/render')
-rw-r--r--src/ui/render/ScrollRenderObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/render/ScrollRenderObject.cpp b/src/ui/render/ScrollRenderObject.cpp
index e621cd0c..5b9cb627 100644
--- a/src/ui/render/ScrollRenderObject.cpp
+++ b/src/ui/render/ScrollRenderObject.cpp
@@ -24,8 +24,8 @@ Point CoerceScroll(const Point& scroll_offset, const Size& content_size,
n = max;
};
- coerce(result.x, scroll_offset.x);
- coerce(result.y, scroll_offset.y);
+ coerce(result.x, max_scroll.x);
+ coerce(result.y, max_scroll.y);
return result;
}