From 5e7d99c382054cc17e32d28dc7d0350aad8a7e5f Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Sat, 21 Mar 2020 15:03:51 +0800 Subject: [PATCH] fix(scrollbar): scrollbar rail will shadow mouse events --- styles/Scrollbar.scss | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/styles/Scrollbar.scss b/styles/Scrollbar.scss index 4b96b07bc..7d29c3efe 100644 --- a/styles/Scrollbar.scss +++ b/styles/Scrollbar.scss @@ -31,6 +31,7 @@ @include b(scrollbar-rail) { @include once { position: absolute; + pointer-events: none; user-select: none; @include m(horizontal) { left: 0; @@ -52,9 +53,13 @@ } } } - } - @include m(disabled) { - pointer-events: none; + @include m(disabled) { + & > { + @include e(scrollbar) { + pointer-events: none; + } + } + } } & > { @include e(scrollbar) { @@ -62,6 +67,7 @@ @include fade-in-transition(scrollbar); position: absolute; cursor: pointer; + pointer-events: all; } background-color: map-get($--scrollbar-background-color, 'default'); transition: background-color .2s $--n-ease-in-out-cubic-bezier;