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 programmatically move Webamp? (through CSS styling?) #1245

Open
that-ben opened this issue Dec 17, 2023 · 0 comments
Open

How to programmatically move Webamp? (through CSS styling?) #1245

that-ben opened this issue Dec 17, 2023 · 0 comments

Comments

@that-ben
Copy link

that-ben commented Dec 17, 2023

So, I've seen this question pop up on various forums over the last 3 years up to just a few weeks ago, but couldn't find any answer: Is it possible to programmatically override Webamp's position variables? They don't seem to be publicly exposed.

I've hacked the initial position to my liking (couldn't use options.__initialWindowLayout because I wanted a relative viewport percentage rather than absolute values) and it works fine, except that when we click for the first time on any of Webamp's components, it instantly reverts back to the center of the viewport. Subsequent clicks and drags are OK. I found that the absolute positioning of Webamp relies on private coordinate variables that don't seem to be exposed at all:

Screenshot 2023-12-17 at 11 05 21 AM
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

1 participant