Make vfsPath scrolling available

This commit is contained in:
Hadi Nategh 2019-01-16 13:05:17 +01:00
parent 8ee2e719de
commit 07c768e732
2 changed files with 21 additions and 1 deletions

View File

@ -292,7 +292,9 @@ var et2_vfsPath = (function(){ "use strict"; return et2_vfsName.extend(
this.div.prepend(this.input);
this.setDOMNode(this.div[0]);
this.span.on('wheel', function(e){
this.scrollLeft = this.scrollLeft - (e.originalEvent.wheelDelta/10);
});
this.input.on('focus', function() {
this.input.val(this.options.value);
this.span.hide();

View File

@ -907,7 +907,25 @@ div.et2_vfsPath ul {
/* This hides the higher level directories if overflow */
direction: rtl;
height: 100%;
overflow-y: hidden;
overflow-x: auto;
padding-bottom: 13px;
max-width: 92%;
margin-right: 7%;
}
div.et2_vfsPath ul::-webkit-scrollbar {
background: transparent;
overflow-y: hidden;
width: 1px;
}
div.et2_vfsPath ul::-webkit-scrollbar-thumb {
background: transparent;
width: 1px;
border-radius: 0px;
height: 1px;
}
div.et2_vfsPath li {
direction: ltr;
display: inline-block;