[OSR/Touch] Scrolling initiated by touch events aborted after "navigation within document" occurs #2936
Labels
bug
Bug report
Framework
Related to framework code or APIs
has fix
A fix has been proposed
help wanted
Issue resolution will likely require community contributions
osr
Related to off-screen rendering
Original report by Dmitry Azaraev (Bitbucket: dmitry-azaraev, GitHub: dmitry-azaraev).
When we perform touch-scrolling sequence, if in this time page will set document.location.hash, then scrolling immediately stops. If you will try reproduce same with devtools sensors emulation - it will work fine. I’m reproduced this on CEF78 and current CEF master.
How to reproduce:
2. Run
cefclient --off-screen-rendering-enabled
3. Load one of attached files:
cef-carousel.html
, and runTests->Other Tests…
, it will slowly scroll layer and should stop with ScrollLeft value around 185..186.4. Load another file:
cef-carousel-hashed.html
, and runTests->Other Tests…
, it will stop scroll almost immediately, and show some number (usually less than 10).cef-carousel-hashed
only listen scroll event and perform navigation within document (viadocument.location.hash = v;
). Events generated by devtools emulation and snipped above seems to be identical. The only thing what in one case changing hash is break scrolling and in other case it is not.PS: This is not uncommon technique, exactly google search may update document.location in same way when you trying to
g-scrolling-carousel
. However test this over google search is much harder, and requires additional preparations.The text was updated successfully, but these errors were encountered: