Skip to content

Commit 3a39fb6

Browse files
committed
fix spacing
1 parent 436912b commit 3a39fb6

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

Telegram/SourceFiles/history/history_widget.cpp

+24-24
Original file line numberDiff line numberDiff line change
@@ -1963,30 +1963,30 @@ void HistoryWidget::setupShortcuts() {
19631963
controller()->searchInChat(_history);
19641964
return true;
19651965
});
1966-
request->check(Command::ChatScrollUp) && request->handle([=] {
1967-
return touchScroll({ 0, _scroll->height() / 10 });
1968-
});
1969-
request->check(Command::ChatScrollDown) && request->handle([=] {
1970-
return touchScroll({ 0, -_scroll->height() / 10 });
1971-
});
1972-
request->check(Command::ChatScrollScreenUp) && request->handle([=] {
1973-
return touchScroll({ 0, _scroll->height() });
1974-
});
1975-
request->check(Command::ChatScrollScreenDown) && request->handle([=] {
1976-
return touchScroll({ 0, -_scroll->height() });
1977-
});
1978-
request->check(Command::ChatScrollHalfScreenUp) && request->handle([=] {
1979-
return touchScroll({ 0, _scroll->height() / 2 });
1980-
});
1981-
request->check(Command::ChatScrollHalfScreenDown) && request->handle([=] {
1982-
return touchScroll({ 0, -_scroll->height() / 2 });
1983-
});
1984-
request->check(Command::ChatScrollTop) && request->handle([=] {
1985-
return touchScroll({ 0, _scroll->scrollTopMax() });
1986-
});
1987-
request->check(Command::ChatScrollBottom) && request->handle([=] {
1988-
return touchScroll({ 0, -_scroll->scrollTopMax() });
1989-
});
1966+
request->check(Command::ChatScrollUp) && request->handle([=] {
1967+
return touchScroll({ 0, _scroll->height() / 10 });
1968+
});
1969+
request->check(Command::ChatScrollDown) && request->handle([=] {
1970+
return touchScroll({ 0, -_scroll->height() / 10 });
1971+
});
1972+
request->check(Command::ChatScrollScreenUp) && request->handle([=] {
1973+
return touchScroll({ 0, _scroll->height() });
1974+
});
1975+
request->check(Command::ChatScrollScreenDown) && request->handle([=] {
1976+
return touchScroll({ 0, -_scroll->height() });
1977+
});
1978+
request->check(Command::ChatScrollHalfScreenUp) && request->handle([=] {
1979+
return touchScroll({ 0, _scroll->height() / 2 });
1980+
});
1981+
request->check(Command::ChatScrollHalfScreenDown) && request->handle([=] {
1982+
return touchScroll({ 0, -_scroll->height() / 2 });
1983+
});
1984+
request->check(Command::ChatScrollTop) && request->handle([=] {
1985+
return touchScroll({ 0, _scroll->scrollTopMax() });
1986+
});
1987+
request->check(Command::ChatScrollBottom) && request->handle([=] {
1988+
return touchScroll({ 0, -_scroll->scrollTopMax() });
1989+
});
19901990
_canSendMessages
19911991
&& request->check(Command::ShowScheduled, 1)
19921992
&& request->handle([=] {

0 commit comments

Comments
 (0)