Show mouse scroll icon if only there's scroll left-right available on vfsPath container

This commit is contained in:
Hadi Nategh 2019-04-04 16:40:00 +02:00
parent afdafc1385
commit f33ed6b100
2 changed files with 12 additions and 0 deletions

View File

@ -295,6 +295,16 @@ var et2_vfsPath = (function(){ "use strict"; return et2_vfsName.extend(
var delta = e.originalEvent.deltaY > 0 ? 30 : -30;
this.scrollLeft = this.scrollLeft - delta;
});
this.span.on('mouseover', function (e){
if (this.scrollWidth > this.clientWidth)
{
jQuery(this).addClass('scrollable');
}
else
{
jQuery(this).removeClass('scrollable');
}
});
this.input.on('focus', function() {
this.input.val(this.options.value);
this.span.hide();

View File

@ -980,6 +980,8 @@ div.et2_vfsPath li {
padding-top: 6px;
color: #26537C;
border-radius: 5px 0px 0px 5px;
}
div.et2_vfsPath ul.scrollable li {
cursor: url(images/mouse_scroll_lr.svg) 20 1 , pointer;
}
li.vfsPath.et2_clickable:last-child:hover {