mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
fix(scrollbar): pointer events shadowed by rail
This commit is contained in:
parent
13342bb5ed
commit
ef9278495b
@ -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">
|
||||
|
@ -52,6 +52,9 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@include m(disabled) {
|
||||
pointer-events: none;
|
||||
}
|
||||
& > {
|
||||
@include e(scrollbar) {
|
||||
@include once {
|
||||
|
Loading…
Reference in New Issue
Block a user