webamp
webamp copied to clipboard
How to contain dragging of webamp to a specific div?
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?
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.