// Move the thumb and wait for a scroll event triggered by the movement.
let scrollEventPromise = waitForScrollEvent(window);
await promiseNativeMouseEventWithAPZ({
target: window,
offsetX: startPoint.x,
offsetY: startPoint.y + moveDistance,
type: "mousemove",
});
await scrollEventPromise;
let scrollPosition = window.scrollY;
// Append an element to the scroll container to expand the scroll range.
const content = document.createElement("div");
content.style.height = "200vh";
document.body.appendChild(content);
// flush the above change.
document.documentElement.getBoundingClientRect();
// Make sure the change has been reflected into APZ.
await promiseApzFlushedRepaints();
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.