diff options
Diffstat (limited to 'include/cru/ui/render/ScrollRenderObject.hpp')
-rw-r--r-- | include/cru/ui/render/ScrollRenderObject.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cru/ui/render/ScrollRenderObject.hpp b/include/cru/ui/render/ScrollRenderObject.hpp index 924b8ca6..774501a1 100644 --- a/include/cru/ui/render/ScrollRenderObject.hpp +++ b/include/cru/ui/render/ScrollRenderObject.hpp @@ -17,8 +17,10 @@ class ScrollRenderObject : public RenderObject { RenderObject* HitTest(const Point& point) override; - Point GetScrollOffset() { return scroll_offset_; } + // Return the coerced scroll offset. + Point GetScrollOffset(); void SetScrollOffset(const Point& offset); + Point GetRawScrollOffset() const { return scroll_offset_; } protected: // Logic: |