mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-03-31 07:52:06 +00:00
Fix keyboard scrolling in ContactsBox.
This commit is contained in:
parent
f283aa033b
commit
f78335aa67
@ -1235,9 +1235,12 @@ void ContactsBox::Inner::leaveEventHook(QEvent *e) {
|
||||
}
|
||||
|
||||
void ContactsBox::Inner::mouseMoveEvent(QMouseEvent *e) {
|
||||
_mouseSelection = true;
|
||||
_lastMousePos = e->globalPos();
|
||||
updateSelection();
|
||||
auto position = e->globalPos();
|
||||
if (_mouseSelection || _lastMousePos != position) {
|
||||
_mouseSelection = true;
|
||||
_lastMousePos = e->globalPos();
|
||||
updateSelection();
|
||||
}
|
||||
}
|
||||
|
||||
void ContactsBox::Inner::mousePressEvent(QMouseEvent *e) {
|
||||
|
Loading…
Reference in New Issue
Block a user