mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
Overlay parent bounding box determined only if necessary.
This commit is contained in:
parent
ec314953bb
commit
197571e671
@ -1723,7 +1723,9 @@ class SpineWebComponentOverlay extends HTMLElement implements OverlayAttributes,
|
|||||||
let renderer = this.renderer;
|
let renderer = this.renderer;
|
||||||
renderer.begin();
|
renderer.begin();
|
||||||
|
|
||||||
const ref = this.parentElement!.getBoundingClientRect();
|
let ref: DOMRect;
|
||||||
|
if (this.scrollable) ref = this.parentElement!.getBoundingClientRect();
|
||||||
|
|
||||||
const tempVector = new Vector3();
|
const tempVector = new Vector3();
|
||||||
this.skeletonList.forEach((widget) => {
|
this.skeletonList.forEach((widget) => {
|
||||||
const { skeleton, pma, bounds, mode, debug, offsetX, offsetY, xAxis, yAxis, dragX, dragY, fit, loadingSpinner, onScreen, loading, clip, isDraggable } = widget;
|
const { skeleton, pma, bounds, mode, debug, offsetX, offsetY, xAxis, yAxis, dragX, dragY, fit, loadingSpinner, onScreen, loading, clip, isDraggable } = widget;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user