Skip to content

pintoTop - #28

Merged
daedeloth merged 5 commits into
flung-emojis-qrfrom
master
Jul 15, 2026
Merged

pintoTop#28
daedeloth merged 5 commits into
flung-emojis-qrfrom
master

Conversation

@daedeloth

Copy link
Copy Markdown
Member

No description provided.

daedeloth and others added 5 commits July 14, 2026 17:29
pinToTop: element-level pin-to-top overlays
…nged

Cache the computed wrapper matrix per record and short-circuit _syncRecord
when it's bit-identical to the previous frame (static QR on a still screen),
avoiding the decompose and seven property writes. Also skip setBounds when
the anchor's bounds are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
A Placeholder pinned above another layer (the connect-screen QR over the
flung-emoji layer) was being defeated at several points:

- Placeholder.updateZIndex re-inserted the inner placeholder next to its
  source element every tick, dragging it back out of the pin layer.
  Skip that reordering when the placeholder is pinned (obj._pinnedToTop,
  set by Pinner on pin and cleared on _restore).
- _syncRecord read the anchor's concatenated matrix without guarding,
  which threw ("reading 'x' of undefined") and broke the tick loop while
  the anchor subtree was still being built. Guard it and skip the frame.
- getBounds() (optional, only for bounds-sizing children) was bundled
  into the same read as the matrices, so a MovieClip anchor whose
  getBounds() throws persistently made _syncRecord bail every frame and
  left the pin stuck at the pin-container origin. Read bounds in its own
  try/catch so a throw there never blocks positioning.

Adds tools/pin-placeholder-test.js covering the z-index case and extends
pin-test.js to assert positioning survives a persistently-throwing
getBounds().

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ixes

# Conflicts:
#	app/scripts/CatLab/Easelbone/EaselJS/Pinner.js
#	dist/scripts/easelbone.js
fix(pinner): make pinToTop robust for pinned Placeholders
@daedeloth
daedeloth merged commit 0899437 into flung-emojis-qr Jul 15, 2026
5 checks passed
@github-actions

Copy link
Copy Markdown

📦 PR Preview deployed!

Examples are available at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant