fix(scrollbar): pointer events shadowed by rail

This commit is contained in:
07akioni 2020-02-26 13:05:58 +08:00
parent 13342bb5ed
commit ef9278495b
2 changed files with 9 additions and 0 deletions

View File

@ -34,6 +34,9 @@
v-if="showRail"
ref="verticalRail"
class="n-scrollbar-rail n-scrollbar-rail--vertical"
:class="{
'n-scrollbar-rail--disabled': !needVerticalScrollbar
}"
:style="{...horizontalRailStyle, width: scrollbarSize }"
>
<transition name="n-scrollbar-transition">
@ -56,6 +59,9 @@
v-if="showRail"
ref="horizontalRail"
class="n-scrollbar-rail n-scrollbar-rail--horizontal"
:class="{
'n-scrollbar-rail--disabled': !needHorizontalScrollbar
}"
:style="{ ...verticalRailStyle, height: scrollbarSize }"
>
<transition name="n-scrollbar-transition">

View File

@ -52,6 +52,9 @@
}
}
}
@include m(disabled) {
pointer-events: none;
}
& > {
@include e(scrollbar) {
@include once {