# Scorrimento lento su Android

**URL:** <https://meta.discourse.org/t/laggy-scrolling-on-android/210217>\
**Category:** Bug\
**Created:** [26 Novembre 2021, 8:57am UTC](https://meta.discourse.org/t/laggy-scrolling-on-android/210217 "2021-11-26T08:57:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [26 Novembre 2021, 12:55pm UTC](https://meta.discourse.org/t/laggy-scrolling-on-android/210217/2 "2021-11-26T12:55:04Z")

</div>

Questo è molto interessante, grazie per la segnalazione! Per quanto ne so, l’unico commit recente che influisce sullo scrolling sarebbe:

> <https://github.com/discourse/discourse/commit/fd93d6f955302907aa5e6ee96ff24e038464f04a>
>
> \- Remove JQuery
> \- Remove legacy \`document.webkitHidden\` support. None of our cu…rrently supported browsers need this
> \- Use \`passive\` event listeners. These allows the browser to process the events first, before passing control to us
> \- Add a new \`unseenTime\` parameter. This allows consumers to request a delay before being notified about the browser going into the background
> \- Add a method for removing a callback
> \- Fire the callback when presence changes in either direction. Previously it would only fire when the user becomes present after a period of inactivity.
> \- Ensure callbacks are only called once for each state change. Previously they would be called every 60s, regardless of the value
> \- Listen to the \`visibilitychanged\` and \`focus\` events, treating them as equivalent to user action. This will make messagebus re-activate more quickly when switching back to a stale tab
> \- Add test helpers
> \- Delete the unused \`discourse/lib/page-visible\` module.
> \- Call message-bus's onVisibilityChange API directly, rather than dispatching a fake event on the \`document\`

Ma se mai, mi sarei aspettato che rendesse lo scrolling **più fluido** , non peggio! (Ho modificato questa particolare funzionalità per utilizzare listener di eventi ‘passivi’, piuttosto che listener di eventi bloccanti)

Hai lo stesso problema su [try.discourse.org](http://try.discourse.org)?

Come esperimento, ho appena creato un tema qui su Meta che rimuove quei listener di eventi aggiornati. [https://meta.discourse.org/?preview\_theme\_id=260](https://meta.discourse.org/?preview_theme_id=260) (Chiamato “Esperimento - rimuovi listener di scrolling” nell’hamburger) Questo tema risolve il ritardo per te?

---

_[View the full topic](https://meta.discourse.org/t/laggy-scrolling-on-android/210217)._
