This error appear when I’m trying to click in a item.
[Violation] Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more responsive.
It’s a warning at this stage. I see it too - there is a link with that warning that points you to some new passive flags you can use with chrome to avoid the issue. I panicked at first but calmed down realizing it was not destructive
Hi, thanks for the answer, but the problem is that I need to click in a item to deploy an options menu, when I click not execute the function “editNote(note)” and in the console appear the error
“[Violation] Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more responsive.”
Maybe I have to change something but I don’t know what.
Correct, I have the same warning. When I click on my v1 project left menu (sliding menu), the violation warning shows up in console. But it works, does it not?
Quick update, simply doing npm i default-passive-events -S
in my v1 project removed that violation notice. I’ve tested on a desktop so far, need to try on android device to make sure.
(Edited - the OP changed his label from v1 to v2 ionic - this post only applies to v1)
hold on, you might be conflating two issues. What is the exact problem? You are tapping on a menu option and the view is not being loaded and the last message you see is this violation?
I had the same issue. In my case, it was not the violation that was the problem. I updated from ionic 1.2.4 to ionic 1.3.x and that completely broke my beforeEnter, afterEnter etc handlers. Downgrading back to 1.2.4 resolved it.
BTW, my comments are for a v1 project. It looks like you are referring to a v2 project (Your original label was for v1). If you are talking about v2, please disregard my ionic version comment.
Yes, I’m using the last version of Ionic or is what I think, but yes is how you say above, I’m tapping on a menu option and the view is not being loaded and the last message I see is this violation.