Made MusicRow scrollbar hidden

pull/35/head
Nikan Dalvand 2019-07-30 22:28:37 +04:30
parent e22155b870
commit fc3eaba39c
2 changed files with 3 additions and 0 deletions

View File

@ -36,4 +36,6 @@ section.music-row
overflow: visible !important
.scroll-content
display: flex
.scrollbar-thumb,.scrollbar-track
display: none !important
</style>

View File

@ -3,6 +3,7 @@ import Scrollbar from 'smooth-scrollbar'
export default class HorizontalScrollPlugin extends Scrollbar.ScrollbarPlugin {
static pluginName = 'horizontalScroll';
transformDelta (delta, fromEvent) {
console.log(fromEvent.type)
if (!/wheel/.test(fromEvent.type)) {
return delta
}