mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
@@ -472,9 +472,11 @@ void DialogsInner::activate() {
|
||||
}
|
||||
|
||||
void DialogsInner::mouseMoveEvent(QMouseEvent *e) {
|
||||
auto position = e->pos();
|
||||
if (_mouseLastGlobalPosition != e->globalPos()) {
|
||||
_mouseLastGlobalPosition = e->globalPos();
|
||||
_mouseSelection = true;
|
||||
updateSelected(position);
|
||||
}
|
||||
updateSelected(e->pos());
|
||||
}
|
||||
|
||||
void DialogsInner::clearIrrelevantState() {
|
||||
|
@@ -223,6 +223,7 @@ private:
|
||||
DialogsList _contacts;
|
||||
|
||||
bool _mouseSelection = false;
|
||||
QPoint _mouseLastGlobalPosition;
|
||||
Qt::MouseButton _pressButton = Qt::LeftButton;
|
||||
|
||||
std::unique_ptr<ImportantSwitch> _importantSwitch;
|
||||
|
Reference in New Issue
Block a user