diff --git a/components/scrollbar/style/index.less b/components/scrollbar/style/index.less index 78e7b97f..f4f0b922 100644 --- a/components/scrollbar/style/index.less +++ b/components/scrollbar/style/index.less @@ -57,7 +57,7 @@ > div { width: 100%; } - &.is-hovering { + &:hover, &.is-hovering { width: @scrollbar-hover-width; } } @@ -67,7 +67,7 @@ > div { height: 100%; } - &.is-hovering { + &:hover, &.is-hovering { height: @scrollbar-hover-width; } } @@ -81,12 +81,8 @@ border-radius: var(--f-border-radius-sm); cursor: pointer; transition: @animation-duration-slow background-color; - - &:hover { - background-color: @scrollbar-active-bg; - } } - &.is-hovering { + &:hover, &.is-hovering { .@{scrollbar-track-cls}-thumb { background-color: @scrollbar-active-bg; border-radius: var(--f-border-radius-base);