WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Conversation

@chrisvxd
Copy link

@chrisvxd chrisvxd commented Feb 3, 2024

Add iframe support in a limited way that works for Puck:

Adds:

  • Support for ragging between droppables in different iframes
  • Support for scrolling iframes whilst dragging
  • Support for keyboard control between iframes
  • A new shouldRenderOriginal API for use with renderClone API (from an earlier legacy implementation, but still useful)

Does not add support for the following, as not required by Puck:

  • The renderClone API, which is required to enable items to retain viability when dragging between iframes

Considerations

  • The original implementation of this injected styles into all iframes via use-style-marshal. However, this was removed in favour of the user-land style syncing, such as via auto-frame-component.
  • renderClone doesn't work with iframes, which might be due to the implementation. Could explore playing around with the viewport state instead, but it wasn't necessary for our immediate requirements.

@chrisvxd chrisvxd force-pushed the iframes branch 3 times, most recently from 298e1e7 to 450d740 Compare February 11, 2024 18:33
@chrisvxd chrisvxd force-pushed the iframes branch 2 times, most recently from 070c75c to dd08e4a Compare February 28, 2024 17:53
@chrisvxd chrisvxd force-pushed the iframes branch 5 times, most recently from 7ed6934 to fa74b00 Compare March 5, 2024 21:46
This allows the user to explicitly disable displacement animations. For example, complex list objects can cause iOS GPU memory crashes in Safari when combined with iframes and CSS transforms, but disabling displacement animations fixes it.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants