From 0c90eed036b21abbeb4171f85d294904ef6abf09 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Tue, 29 Apr 2025 17:06:49 +0200 Subject: [PATCH] scrollable-tweak-off changed to no-auto-parent-transform. --- .../example/webcomponent-tutorial.html | 8 ++++---- .../spine-webgl/src/SpineWebComponentWidget.ts | 16 ++++++++-------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/spine-ts/spine-webgl/example/webcomponent-tutorial.html b/spine-ts/spine-webgl/example/webcomponent-tutorial.html index 6e87980dc..c52b484a2 100644 --- a/spine-ts/spine-webgl/example/webcomponent-tutorial.html +++ b/spine-ts/spine-webgl/example/webcomponent-tutorial.html @@ -2334,7 +2334,7 @@ stretchyman.update = (canvas, delta, skeleton, state) => { Moreover, it is necessary to perform the following actions:

1) The scrollable container must have a transform css attribute. If it hasn't this attribute the spine-overlay will add it for you. - If your scrollable container has already this css attribute, or if you prefer to add it by yourself (example: transform: translateZ(0);), set the scrollable-tweak-off to the spine-overlay. + If you don't want this attribute to be added, set the no-auto-parent-transform to the spine-overlay.
2) The spine-overlay must have the scrollable attribute
@@ -2442,7 +2442,7 @@ stretchyman.update = (canvas, delta, skeleton, state) => { { { = { "overlay-id": { propertyName: "overlayId", type: "string" }, - "scrollable-tweak-off": { propertyName: "scrollableTweakOff", type: "boolean" }, + "no-auto-parent-transform": { propertyName: "noAutoParentTransform", type: "boolean" }, "overflow-top": { propertyName: "overflowTop", type: "number" }, "overflow-bottom": { propertyName: "overflowBottom", type: "number" }, "overflow-left": { propertyName: "overflowLeft", type: "number" }, @@ -2231,7 +2231,7 @@ class SpineWebComponentOverlay extends HTMLElement implements OverlayAttributes, scrollPositionY += window.scrollY; } else { - // Ideally this should be the only scrollable case (scrollable-tweak-off not enabled or at least an ancestor has transform) + // Ideally this should be the only scrollable case (no-auto-parent-transform not enabled or at least an ancestor has transform) // I'd like to get rid of the code below if (!this.hasCssTweakOff()) { scrollPositionX += this.parentElement!.scrollLeft;