// Wait for the end of the smooth scrolling triggered by above wheel events.
await scrollendPromise;
// Store the destination of the smooth scrolling temporarily.
const endOfScrollPosition = container.scrollLeft;
// Try to do an instant scroll to the left edge of the scroll container,
// there's a scroll snap point.
container.scrollTo(container.clientWidth, 0);
is(endOfScrollPosition, container.scrollLeft);
}
if (getPlatform() == "android") {
ok(true, "Skipping test because native wheel events are not supported on Android");
subtestDone();
} else if (getPlatform() == "linux") {
ok(true, "Skipping test on Linux because of bug 1889039. ");
subtestDone();
} else {
waitUntilApzStable()
.then(test)
.then(subtestDone, subtestFailed);
}
</script>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
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.