@braccato/core 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/engine.js +2 -0
- package/package.json +1 -1
package/dist/engine.js
CHANGED
|
@@ -1442,6 +1442,8 @@ export function setupLineCullObserver(engine) {
|
|
|
1442
1442
|
engine.lineCullObserver = null;
|
|
1443
1443
|
return;
|
|
1444
1444
|
}
|
|
1445
|
+
// Scroll anchoring would compensate residual cull height-shifts with a scroll the engine misreads as the user's (Firefox); the engine owns scrollTop, so disable it.
|
|
1446
|
+
engine.host.getScrollElement()?.style.setProperty("overflow-anchor", "none");
|
|
1445
1447
|
// Pin each line's skipped placeholder to its last rendered size, so skipping a line never shifts the
|
|
1446
1448
|
// container's scroll height, which the engine would misread as a user scroll.
|
|
1447
1449
|
const restingHeights = engine.lines.map(line => line.lyricElement.offsetHeight);
|