I am using hammer for dragging and it is getting choppy when loading other stuff, as this warning message is telling me.
Handling of 'touchstart' input event was delayed for X ms due to
main thread being busy. Consider marking event handler as 'passive' to
make the page more responsive.
So I tried to add 'passive' to the listener like so
Hammer(element[0]).on("touchstart", function(ev) {
// stuff
}, {
passive: true
});
but I'm still getting this warning.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…