Skip to content

Commit

Permalink
fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
pinbraerts committed Aug 21, 2024
1 parent 436912b commit 3a39fb6
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions Telegram/SourceFiles/history/history_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1963,30 +1963,30 @@ void HistoryWidget::setupShortcuts() {
controller()->searchInChat(_history);
return true;
});
request->check(Command::ChatScrollUp) && request->handle([=] {
return touchScroll({ 0, _scroll->height() / 10 });
});
request->check(Command::ChatScrollDown) && request->handle([=] {
return touchScroll({ 0, -_scroll->height() / 10 });
});
request->check(Command::ChatScrollScreenUp) && request->handle([=] {
return touchScroll({ 0, _scroll->height() });
});
request->check(Command::ChatScrollScreenDown) && request->handle([=] {
return touchScroll({ 0, -_scroll->height() });
});
request->check(Command::ChatScrollHalfScreenUp) && request->handle([=] {
return touchScroll({ 0, _scroll->height() / 2 });
});
request->check(Command::ChatScrollHalfScreenDown) && request->handle([=] {
return touchScroll({ 0, -_scroll->height() / 2 });
});
request->check(Command::ChatScrollTop) && request->handle([=] {
return touchScroll({ 0, _scroll->scrollTopMax() });
});
request->check(Command::ChatScrollBottom) && request->handle([=] {
return touchScroll({ 0, -_scroll->scrollTopMax() });
});
request->check(Command::ChatScrollUp) && request->handle([=] {
return touchScroll({ 0, _scroll->height() / 10 });
});
request->check(Command::ChatScrollDown) && request->handle([=] {
return touchScroll({ 0, -_scroll->height() / 10 });
});
request->check(Command::ChatScrollScreenUp) && request->handle([=] {
return touchScroll({ 0, _scroll->height() });
});
request->check(Command::ChatScrollScreenDown) && request->handle([=] {
return touchScroll({ 0, -_scroll->height() });
});
request->check(Command::ChatScrollHalfScreenUp) && request->handle([=] {
return touchScroll({ 0, _scroll->height() / 2 });
});
request->check(Command::ChatScrollHalfScreenDown) && request->handle([=] {
return touchScroll({ 0, -_scroll->height() / 2 });
});
request->check(Command::ChatScrollTop) && request->handle([=] {
return touchScroll({ 0, _scroll->scrollTopMax() });
});
request->check(Command::ChatScrollBottom) && request->handle([=] {
return touchScroll({ 0, -_scroll->scrollTopMax() });
});
_canSendMessages
&& request->check(Command::ShowScheduled, 1)
&& request->handle([=] {
Expand Down

0 comments on commit 3a39fb6

Please sign in to comment.