mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fixed user popup not working.
This commit is contained in:
parent
49398300d6
commit
39ee6efffc
|
@ -1072,14 +1072,15 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
|
||||||
if (event->button() == Qt::LeftButton) {
|
if (event->button() == Qt::LeftButton) {
|
||||||
this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight =
|
this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight =
|
||||||
false;
|
false;
|
||||||
if (this->isMouseDown_ || this->isDoubleClick_) {
|
if (this->isMouseDown_) {
|
||||||
this->isMouseDown_ = false;
|
this->isMouseDown_ = false;
|
||||||
this->isDoubleClick_ = false;
|
|
||||||
|
|
||||||
if (fabsf(distanceBetweenPoints(this->lastPressPosition_,
|
if (fabsf(distanceBetweenPoints(this->lastPressPosition_,
|
||||||
event->screenPos())) > 15.f) {
|
event->screenPos())) > 15.f) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
} else if (this->isDoubleClick_) {
|
||||||
|
this->isDoubleClick_ = false;
|
||||||
// Was actually not a wanted triple-click
|
// Was actually not a wanted triple-click
|
||||||
if (fabsf(distanceBetweenPoints(this->lastDClickPosition_,
|
if (fabsf(distanceBetweenPoints(this->lastDClickPosition_,
|
||||||
event->screenPos())) > 10.f) {
|
event->screenPos())) > 10.f) {
|
||||||
|
|
Loading…
Reference in a new issue