admin管理员组文章数量:1328756
I am using dragula js to use drag and drop in mobile devices and suddenly ran into a problem where I am getting the following error.
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
and the error hits the following function
function drag (e) {
if (!_mirror) {
return;
}
e.preventDefault();
//other code
}
what might be the problem here?
I am using dragula js to use drag and drop in mobile devices and suddenly ran into a problem where I am getting the following error.
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
and the error hits the following function
function drag (e) {
if (!_mirror) {
return;
}
e.preventDefault();
//other code
}
what might be the problem here?
Share Improve this question asked Dec 10, 2018 at 6:03 user10249871user102498711 Answer
Reset to default 7This seems to be a problem with the breaking upgrades to chrome 56 to improve the performance in scrolling, Please check here
https://github./bevacqua/dragula/issues/468
You can define touch-action: none
to the drag handle to resolve the issue.
Seems to be a problem with bindings for the pointer events.
My issue was solved by adding touch-action: none to the drag handle.
本文标签:
版权声明:本文标题:javascript - dragula.js: unable to preventDefault inside passive event listener due to target being treated as passive - Stack O 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742250277a2440625.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论