@vectoriox/iox-builder 11.9.2 → 11.9.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.
@@ -5302,6 +5302,10 @@ class SceneCanvasService {
5302
5302
  this.rootsById.delete(id);
5303
5303
  this.idsByRoot.delete(root);
5304
5304
  }
5305
+ /** The canvas's Lenis just moved the scroll, inside this frame: hold every stage in this same frame. */
5306
+ pinNow() {
5307
+ this.driver?.pinNow();
5308
+ }
5305
5309
  /** The damped progress a root's layers stand at. */
5306
5310
  progressOf(root) {
5307
5311
  return this.driver?.progressOf(root) ?? null;
@@ -9977,6 +9981,8 @@ class BuilderComponent {
9977
9981
  autoResize: false, // we drive resize() manually via canvasRo + viewportSub
9978
9982
  });
9979
9983
  this.lenis.on('scroll', (instance) => {
9984
+ // A Scene's stage is held against this very scroll: a frame later, it would paint carried off its pin.
9985
+ this.sceneCanvas?.pinNow();
9980
9986
  const clientH = this.previewScrollRef.nativeElement.clientHeight;
9981
9987
  this.onPageScroll({
9982
9988
  scrollTop: instance.scroll,