Fixed user popup not working.

This commit is contained in:
Cranken 2018-10-06 16:19:58 +02:00 committed by pajlada
parent 49398300d6
commit 39ee6efffc

View file

@ -1072,14 +1072,15 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
if (event->button() == Qt::LeftButton) {
this->dCSelection_.selectingLeft = this->dCSelection_.selectingRight =
false;
if (this->isMouseDown_ || this->isDoubleClick_) {
if (this->isMouseDown_) {
this->isMouseDown_ = false;
this->isDoubleClick_ = false;
if (fabsf(distanceBetweenPoints(this->lastPressPosition_,
event->screenPos())) > 15.f) {
return;
}
} else if (this->isDoubleClick_) {
this->isDoubleClick_ = false;
// Was actually not a wanted triple-click
if (fabsf(distanceBetweenPoints(this->lastDClickPosition_,
event->screenPos())) > 10.f) {