From 13419831c53c848c2aee9473dee46477ad181c51 Mon Sep 17 00:00:00 2001 From: deepin-ci-robot Date: Mon, 13 Oct 2025 09:07:02 +0000 Subject: [PATCH] sync: from linuxdeepin/qt5integration Synchronize source files from linuxdeepin/qt5integration. Source-pull-request: https://github.com/linuxdeepin/qt5integration/pull/283 --- styleplugins/chameleon/chameleonstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/styleplugins/chameleon/chameleonstyle.cpp b/styleplugins/chameleon/chameleonstyle.cpp index 980b672..1bc43d6 100644 --- a/styleplugins/chameleon/chameleonstyle.cpp +++ b/styleplugins/chameleon/chameleonstyle.cpp @@ -887,7 +887,7 @@ bool ChameleonStyle::hideScrollBarByAnimation(const QStyleOptionSlider *scrollBa // underMouse ==> State_MouseOver sometimes not work well ? // underMouse true but State_MouseOver false... bool isHoveredOrPressed = hoveredOrPressed(scrollBar) || sbar->underMouse(); - if (isHoveredOrPressed) { + if (isHoveredOrPressed && st == QAbstractAnimation::Running) { // 标记一下,鼠标移开时需要重新开启隐藏动画 sbar->setProperty("_d_dtk_scrollbar_visible", true); return false;