mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +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) {
|
void ContactsBox::Inner::mouseMoveEvent(QMouseEvent *e) {
|
||||||
_mouseSelection = true;
|
auto position = e->globalPos();
|
||||||
_lastMousePos = e->globalPos();
|
if (_mouseSelection || _lastMousePos != position) {
|
||||||
updateSelection();
|
_mouseSelection = true;
|
||||||
|
_lastMousePos = e->globalPos();
|
||||||
|
updateSelection();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ContactsBox::Inner::mousePressEvent(QMouseEvent *e) {
|
void ContactsBox::Inner::mousePressEvent(QMouseEvent *e) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue