Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move draggable menus outside of iframe when possible #554

Closed
wants to merge 4 commits into from

Conversation

AlexDavies8
Copy link
Contributor

This PR allows draggable menus (I think ChatUserInfoMenu is the only one atm) to be dragged anywhere on the page when chat is embedded as an iframe (i.e. it can escape the iframe bounds).

Sometimes this may not be possible as some sites have restrictions on what an iframe is able to control on the parent page, in which case it will behave as it currently does and clip to the iframe bounds.

This also supports arbitrarily nested iframes (for example if you had an iframe with bigscreen in, the menus from the chat in there would be able to be dragged anywhere on the page.

Video.mp4

@AlexDavies8
Copy link
Contributor Author

Removed other commits relating to #553

@11k
Copy link
Contributor

11k commented Nov 16, 2024

I understand the implementation broadly speaking, but some parts are extremely difficult to follow. There are also UX issues, such as only clicking in the the chat can dismiss a draggable window, not the stream panel.

Ultimately, I don't think this is something I'm interested in maintaining at the moment. One thing we may do in the future is make it so that chat isn't embedded in an iframe on the Bigscreen page. That would give us this functionality for "free."

@11k 11k closed this Nov 16, 2024
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.

2 participants