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

tap事件event不正确的bug,已经修正 #22

Open
wangbagang opened this issue Dec 22, 2016 · 0 comments
Open

tap事件event不正确的bug,已经修正 #22

wangbagang opened this issue Dec 22, 2016 · 0 comments

Comments

@wangbagang
Copy link

wangbagang commented Dec 22, 2016

源代码5122行:
_triggerClick: function (e) {
/var target = e.target;
if (!/(SELECT|INPUT|TEXTAREA)/i.test(target.tagName)) {
var ev = document.createEvent('MouseEvents');
ev.initMouseEvent('click', true, true, e.view, 1, target.screenX, target.screenY, target.clientX, target.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, 0, null);
target.dispatchEvent(ev);
}
/
var target = e.target;
var srcEvent = e.srcEvent;
if (!/(SELECT|INPUT|TEXTAREA)/i.test(target.tagName)) {
var ev = document.createEvent('MouseEvents');
ev.initMouseEvent('click', true, true, srcEvent.view, 1, srcEvent.screenX, srcEvent.screenY, srcEvent.clientX, srcEvent.clientY, srcEvent.ctrlKey, srcEvent.altKey, srcEvent.shiftKey, srcEvent.metaKey, 0, null);
target.dispatchEvent(ev);
}
}

@wangbagang wangbagang changed the title tap事件的bug,已经修正 tap事件event不正确的bug,已经修正 Dec 22, 2016
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