finger-mover icon indicating copy to clipboard operation
finger-mover copied to clipboard

在 finger mover中无法设置div滚动条

Open coldpc opened this issue 7 years ago • 0 comments

在代码move方法中,代码如下: Fmover.prototype._move = function _move (event) { var this$1 = this;

var F = this.fingerd.injectEvent(event);
var returnVal;
var pluginStorLen = this.pluginsStorage.length;
for (var i = 0; i < pluginStorLen; i++) {
    returnVal = this$1.pluginsStorage[i].move && this$1.pluginsStorage[i].move(F);
}

if (typeof returnVal !== 'undefined' && !returnVal) {
    event.stopPropagation();
}
event.preventDefault();

};

建议修改为: if (typeof returnVal !== 'undefined' && !returnVal) { event.stopPropagation(); event.preventDefault(); }

coldpc avatar Jan 31 '18 01:01 coldpc