[wp-trac] [WordPress Trac] #55988: touchStart events should be passive
WordPress Trac
noreply at wordpress.org
Thu Jun 16 08:24:06 UTC 2022
#55988: touchStart events should be passive
-------------------------------------+-------------------------
Reporter: joostdevalk | Owner: joostdevalk
Type: enhancement | Status: assigned
Priority: normal | Milestone: 6.0.1
Component: Comments | Version:
Severity: normal | Keywords: has-patch
Focuses: javascript, performance |
-------------------------------------+-------------------------
Browsers can't know if an event listener, like `touchStart` will prevent
scrolling, so they always wait for the listener to finish executing before
scrolling the page. Making them passive allows for scrolling to continue
properly.
See [https://web.dev/uses-passive-event-listeners/ this doc] for further
explanation.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55988>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list