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

How to contain dragging of webamp to a specific div? #1128

Open
web3builders opened this issue Oct 12, 2021 · 1 comment
Open

How to contain dragging of webamp to a specific div? #1128

web3builders opened this issue Oct 12, 2021 · 1 comment

Comments

@web3builders
Copy link

Hello,

Trying to contain dragging of #webamp to a specific div on my website, but can't figure it out.
The div in question is not its direct parent if that helps.

Ideas?

@captbaritone
Copy link
Owner

There's not currently a way to do this. Webamp has a bunch of logic around constraining itself to the window and it's relatively hard coded to that. Supporting constraining itself to a different div has a number of challenges when you consider that the div might change size/position at any point, including while you are dragging windows.

Could you share more about what you're trying to achieve?

In some cases, for example, an <iframe /> might be able to give this behavior.

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

No branches or pull requests

2 participants