Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
coldpc opened this issue Jan 31, 2018 · 0 comments
Open

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

coldpc opened this issue Jan 31, 2018 · 0 comments

Comments

@coldpc
Copy link

coldpc commented Jan 31, 2018

在代码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();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant