diff --git a/ui/layers/box_content.cpp b/ui/layers/box_content.cpp index c2b765f..bb6d3e2 100644 --- a/ui/layers/box_content.cpp +++ b/ui/layers/box_content.cpp @@ -101,7 +101,7 @@ void BoxContent::onScrollToY(int top, int bottom) { } } -void BoxContent::onDraggingScrollDelta(int delta) { +void BoxContent::scrollByDraggingDelta(int delta) { _draggingScrollDelta = _scroll ? delta : 0; if (_draggingScrollDelta) { if (!_draggingScrollTimer) { diff --git a/ui/layers/box_content.h b/ui/layers/box_content.h index 28426d5..f293fe4 100644 --- a/ui/layers/box_content.h +++ b/ui/layers/box_content.h @@ -192,11 +192,11 @@ public: getDelegate()->setNoContentMargin(noContentMargin); } + void scrollByDraggingDelta(int delta); + public slots: void onScrollToY(int top, int bottom = -1); - void onDraggingScrollDelta(int delta); - protected: virtual void prepare() = 0;