mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +02:00
Fix keyboard scrolling in ContactsBox.
This commit is contained in:
parent
f283aa033b
commit
f78335aa67
1 changed files with 6 additions and 3 deletions
|
@ -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…
Add table
Reference in a new issue