MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / _parseSmoothness

Function _parseSmoothness

www/js/_hyperscript.esm.js:6281–6285  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

6279 return { target, offset, plusOrMinus, scrollOptions, container };
6280}
6281function _parseSmoothness(parser) {
6282 var smoothness = parser.matchAnyToken("smoothly", "instantly");
6283 if (!smoothness) return void 0;
6284 return smoothness.value === "smoothly" ? "smooth" : "instant";
6285}
6286function _resolveScroll(ctx, to, offset, plusOrMinus, scrollOptions, container) {
6287 ctx.meta.runtime.implicitLoop(to, function(target) {
6288 if (target === window) target = document.body;

Callers 1

parseMethod · 0.70

Calls 1

matchAnyTokenMethod · 0.45

Tested by

no test coverage detected