diff --git a/api/js/etemplate/et2_widget_vfs.js b/api/js/etemplate/et2_widget_vfs.js index dae90a5f0d..8b5bd8c300 100644 --- a/api/js/etemplate/et2_widget_vfs.js +++ b/api/js/etemplate/et2_widget_vfs.js @@ -293,7 +293,8 @@ 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); + var delta = e.originalEvent.deltaY > 0 ? 30 : -30; + this.scrollLeft = this.scrollLeft - delta; }); this.input.on('focus', function() { this.input.val(this.options.value);