Skip to content

Commit

Permalink
fix: Add extend draggable area for esl-scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ala-n committed Dec 18, 2020
1 parent ca4a904 commit 403cf33
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/modules/esl-scrollbar/core/esl-scrollbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
display: inline-block;
position: absolute;
cursor: default;
overflow: hidden;

&[inactive] {
visibility: hidden;
Expand All @@ -24,6 +25,15 @@
cursor: pointer;
border-radius: 3px;
background: #b5b5b5;

&::after {
content: '';
position: absolute;
top: -5px;
left: -5px;
width: calc(~'100% + 10px');
height: calc(~'100% + 10px');
}
}

&[dragging] .scrollbar-thumb {
Expand Down

0 comments on commit 403cf33

Please sign in to comment.