mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Lock scroll either horizontal or vertical.
This commit is contained in:
@@ -793,7 +793,10 @@ void Widget::setupMainMenuToggle() {
|
||||
}
|
||||
|
||||
void Widget::setupStories() {
|
||||
trackScroll(_stories.get());
|
||||
_stories->verticalScrollEvents(
|
||||
) | rpl::start_with_next([=](not_null<QWheelEvent*> e) {
|
||||
_scroll->viewportEvent(e);
|
||||
}, _stories->lifetime());
|
||||
|
||||
_storiesContents.fire(Stories::ContentForSession(
|
||||
&controller()->session(),
|
||||
|
||||
Reference in New Issue
Block a user