Skip to content

Commit

Permalink
fix: hide scrollbar in Firefox (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
MellKam authored Aug 21, 2023
1 parent e35072c commit ba6a4b3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions packages/radix-vue/src/ScrollArea/ScrollAreaViewport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ export default {
<template>
<Primitive as="style">
/* Hide scrollbars cross-browser and enable momentum scroll for touch
devices */ [data-radix-scroll-area-viewport] { -ms-overflow-style: none;
-webkit-overflow-scrolling: touch; }
[data-radix-scroll-area-viewport]::-webkit-scrollbar { display: none; }
devices */
[data-radix-scroll-area-viewport] {
scrollbar-width:none;
-ms-overflow-style:none;
-webkit-overflow-scrolling:touch;
}

[data-radix-scroll-area-viewport]::-webkit-scrollbar {
display:none;
}
</Primitive>
<div
ref="viewportElement"
Expand Down

0 comments on commit ba6a4b3

Please sign in to comment.