mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Don't trigger middle mouse scrolling if ChannelView is not fully populated (#2933)
Co-authored-by: pajlada <rasmus.karlsson@pajlada.com>
This commit is contained in:
parent
804bc526b5
commit
670ad90242
|
@ -6,6 +6,7 @@
|
|||
- Minor: Added `/openurl` command. Usage: `/openurl <URL>`. Opens the provided URL in the browser. (#2461, #2926)
|
||||
- Bugfix: Now deleting cache files that weren't modified in the past 14 days. (#2947)
|
||||
- Bugfix: Fixed large timeout durations in moderation buttons overlapping with usernames or other buttons. (#2865, #2921)
|
||||
- Bugfix: Middle mouse click no longer scrolls in not fully populated usercards and splits. (#2933)
|
||||
- Bugfix: Fix bad behavior of the HTML color picker edit when user input is being entered. (#2942)
|
||||
|
||||
## 2.3.3
|
||||
|
|
|
@ -1622,7 +1622,7 @@ void ChannelView::mousePressEvent(QMouseEvent *event)
|
|||
hoverLayoutElement->getFlags().has(
|
||||
MessageElementFlag::Username))
|
||||
break;
|
||||
else
|
||||
else if (this->scrollBar_->isVisible())
|
||||
this->enableScrolling(event->screenPos());
|
||||
}
|
||||
}
|
||||
|
@ -1696,7 +1696,7 @@ void ChannelView::mouseReleaseEvent(QMouseEvent *event)
|
|||
}
|
||||
else if (event->button() == Qt::MiddleButton)
|
||||
{
|
||||
if (this->isScrolling_)
|
||||
if (this->isScrolling_ && this->scrollBar_->isVisible())
|
||||
{
|
||||
if (event->screenPos() == this->lastMiddlePressPosition_)
|
||||
this->enableScrolling(event->screenPos());
|
||||
|
|
Loading…
Reference in a new issue