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

Scrolling breaks draw2d #241

Open
28raining opened this issue Jun 20, 2023 · 0 comments
Open

Scrolling breaks draw2d #241

28raining opened this issue Jun 20, 2023 · 0 comments

Comments

@28raining
Copy link

There seems to be a bug that if the page is scrolled at all Draw2D stops working. At least that is what I experienced.

To fix this I swapped;
this.setScrollArea(document.body);

For;
this.setScrollArea(window);

prompted by this; https://stackoverflow.com/questions/32277323/jquery-scrolltop-method-not-working

It took me a really long time to debug that! Hope it's helpful...
I think perhaps scrolling never worked? Or just in my setup...

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