Skip to content

Commit

Permalink
[BUGFIX] Avoid unintentionally moving the image when dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
deoostfrees committed Jun 5, 2024
1 parent 89292f8 commit 755f426
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/css/parvus.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ body:has(.parvus[aria-hidden=false]) {
.parvus__slider--is-dragging {
cursor: grabbing;
}
.parvus__slider--is-dragging .parvus__content {
pointer-events: none;
}
.parvus__slide {
display: grid;
block-size: 100%;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/parvus.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/scss/parvus.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ body:has(.parvus[aria-hidden='false']) {

&--is-dragging {
cursor: grabbing;


& .parvus__content {
pointer-events: none;
}
}
}

Expand Down

0 comments on commit 755f426

Please sign in to comment.