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

HTML DOCTYPE required for the library to work #420

Open
themaxsandelin opened this issue Dec 8, 2024 · 1 comment
Open

HTML DOCTYPE required for the library to work #420

themaxsandelin opened this issue Dec 8, 2024 · 1 comment

Comments

@themaxsandelin
Copy link

Describe the bug
If you determine this to be a "bug" or not, is up to you, but I just spent 2 hours trying to get this library to work on my site and used various online tools like Codepen and Codesandbox to see if it was some issue with the versioning of the library. It turned out that I simply had forgot to add the <!DOCTYPE html> at the top of my HTML document.

I don't really mind if this is required or not, there might be a reason. However, it would be very helpful if you at least outline this in the documentation. I know the doctype is standard, however it's very easy to forget. :)

To Reproduce
Simply set up a basic HTML website and try using the library, and omit the <!DOCTYPE html> at the top of the page.

@maurodf0
Copy link

Hi @themaxsandelin, thanks for pointing out this one.
Had this problem and now works fine.

Only the scroll in 'inspect' mode worked cause trigged the 'native' scroll

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