Solution for [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event

333 views
Skip to first unread message

nir...@techaheadcorp.com

unread,
Jun 29, 2017, 1:06:28 PM6/29/17
to Angular and AngularJS discussion

Hi,

Please tell me how can I fix the following issue which is coming in Chrome console(in verbose)-

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive.

Thanks in advance.

Sander Elias

unread,
Jul 1, 2017, 5:34:17 AM7/1/17
to Angular and AngularJS discussion
Hi Nirmal

I'm not even sure this is an angular warning. However, it holds both the cause and the solution. 
In your app somewhere you added something to a TouchStart. This something is doing some form of calculation.Change that code in such a way, that this doesn't happen anymore (moving it to touchend comes to mind) 

Regards
Sander
Reply all
Reply to author
Forward
0 new messages