mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-03-01 13:36:55 +08:00
fix(scrollbar): scrollbar rail will shadow mouse events
This commit is contained in:
parent
40ca14ff0e
commit
5e7d99c382
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user