spring-io / spring-asciidoctor-backends

A backend for Asciidoctor used to produce Spring styled HTML
Apache License 2.0
79 stars 16 forks source link

Scrolling and navigation on a mobile is lagging and shaking. #49

Open ohubaut opened 3 years ago

ohubaut commented 3 years ago

The new backend, introduced with the release of Spring Boot 2.5.0, is quite unpleasant to use on a mobile.

Scrolling is unresponsive, often leaves part of the page blank as the browser seem to have a hard time to keep up with the rendering. There is a shaking effect too, even with slow scroll.

Observed on an iPhone 11 Pro, so not an underpowered phone.

For reference, see the difference between the 2.4.6 doc smooth scroll and the current 2.5.0 doc (the video softens the effect, it is much more pronounced IRL)

philwebb commented 3 years ago

Thanks for the report. I'm not sure yet if this is something related to javascript that updates the TOC or a more fundamental change.

toedter commented 3 years ago

On my Samsung S9 (Android) everything runs smoothly.