webamp icon indicating copy to clipboard operation
webamp copied to clipboard

How to contain dragging of webamp to a specific div?

Open web3builders opened this issue 4 years ago • 1 comments

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?

web3builders avatar Oct 12 '21 21:10 web3builders

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.

captbaritone avatar Oct 14 '21 05:10 captbaritone