Skip to content

Commit

Permalink
fix(scrollbar): add 'touch-action: none' to swiper-scrollbar (#7024)
Browse files Browse the repository at this point in the history
- '-ms-touch-action' is not supported by Firefox, Firefox for Android, Safari, Samsung Internet. Add 'touch-action' to support Firefox 52+, Firefox for Android 52+, Safari 13+, Samsung Internet 3.0+.
  • Loading branch information
mhmmdtech authored Sep 20, 2023
1 parent 96e5166 commit 9542d09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/modules/scrollbar/scrollbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
border-radius: var(--swiper-scrollbar-border-radius, 10px);
position: relative;
-ms-touch-action: none;
touch-action: none;
background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1));
.swiper-scrollbar-disabled > &,
&.swiper-scrollbar-disabled {
Expand Down
1 change: 1 addition & 0 deletions src/modules/scrollbar/scrollbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
border-radius: var(--swiper-scrollbar-border-radius, 10px);
position: relative;
-ms-touch-action: none;
touch-action: none;
background: var(--swiper-scrollbar-bg-color, rgba(0, 0, 0, 0.1));
.swiper-scrollbar-disabled > &,
&.swiper-scrollbar-disabled {
Expand Down

0 comments on commit 9542d09

Please sign in to comment.