Open magreenblatt opened 4 years ago
Original comment by Dmitry Azaraev (Bitbucket: dmitry-azaraev, GitHub: dmitry-azaraev).
Pull request #317 has fix.
Original changes by Dmitry Azaraev (Bitbucket: dmitry-azaraev, GitHub: dmitry-azaraev).
Original changes by Dmitry Azaraev (Bitbucket: dmitry-azaraev, GitHub: dmitry-azaraev).
Original changes by Dmitry Azaraev (Bitbucket: dmitry-azaraev, GitHub: dmitry-azaraev).
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.