Skip to content

Commit d46c922

Browse files
deepin-ci-robot18202781743
authored andcommitted
sync: from linuxdeepin/qt5integration
Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: linuxdeepin/qt5integration#283
1 parent c495716 commit d46c922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

styleplugins/chameleon/chameleonstyle.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ bool ChameleonStyle::hideScrollBarByAnimation(const QStyleOptionSlider *scrollBa
887887
// underMouse ==> State_MouseOver sometimes not work well ?
888888
// underMouse true but State_MouseOver false...
889889
bool isHoveredOrPressed = hoveredOrPressed(scrollBar) || sbar->underMouse();
890-
if (isHoveredOrPressed) {
890+
if (isHoveredOrPressed && st == QAbstractAnimation::Running) {
891891
// 标记一下,鼠标移开时需要重新开启隐藏动画
892892
sbar->setProperty("_d_dtk_scrollbar_visible", true);
893893
return false;

0 commit comments

Comments
 (0)