2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Fix check for _mouseSelection flag in dialogs.

Fixes #3781.
This commit is contained in:
John Preston
2017-08-15 18:16:46 +03:00
parent 81fb32504b
commit 0303f18ac6
2 changed files with 6 additions and 3 deletions

View File

@@ -472,9 +472,11 @@ void DialogsInner::activate() {
}
void DialogsInner::mouseMoveEvent(QMouseEvent *e) {
auto position = e->pos();
_mouseSelection = true;
updateSelected(position);
if (_mouseLastGlobalPosition != e->globalPos()) {
_mouseLastGlobalPosition = e->globalPos();
_mouseSelection = true;
}
updateSelected(e->pos());
}
void DialogsInner::clearIrrelevantState() {