diff --git a/ui/layers/box_content.cpp b/ui/layers/box_content.cpp index e25af58..e089902 100644 --- a/ui/layers/box_content.cpp +++ b/ui/layers/box_content.cpp @@ -110,7 +110,7 @@ RectParts BoxContent::customCornersFilling() { return {}; } -void BoxContent::onScrollToY(int top, int bottom) { +void BoxContent::scrollToY(int top, int bottom) { if (_scroll) { _scroll->scrollToY(top, bottom); } diff --git a/ui/layers/box_content.h b/ui/layers/box_content.h index 8b470d9..86112dc 100644 --- a/ui/layers/box_content.h +++ b/ui/layers/box_content.h @@ -214,7 +214,7 @@ public: void scrollByDraggingDelta(int delta); - void onScrollToY(int top, int bottom = -1); + void scrollToY(int top, int bottom = -1); protected: virtual void prepare() = 0;