What is the primary consequence of setting ‘passive: true’ on a touch event listener?

Web Development Hard

Web Development — Hard

What is the primary consequence of setting ‘passive: true’ on a touch event listener?

Key points

  • Passive listeners improve scroll performance.
  • Passive listeners cannot call preventDefault().
  • The browser ignores preventDefault() calls in passive listeners.

Ready to go further?

Related questions