@enact/ui
Version:
A collection of simplified unstyled cross-platform UI components for Enact
27 lines (26 loc) • 518 B
CSS
.virtualList {
position: relative;
height: 100%;
width: 100%;
overflow: hidden;
/* hide native scrollbar */
scrollbar-width: none;
}
.virtualList.vertical {
overflow-y: scroll;
}
.virtualList.horizontal {
overflow-x: scroll;
}
.virtualList .listItem {
overflow: hidden;
width: 100%;
will-change: transform;
}
.virtualList .content {
will-change: transform;
}
/* NOTE: Needs to be revisited whether it can be replaced with scrollbar-width */
.virtualList::-webkit-scrollbar {
display: none;
}