asvd / dragscroll

micro library for drag-n-drop scrolling style
http://asvd.github.io/dragscroll/
MIT License
1.1k stars 166 forks source link

doesn't work with html5 - <!DOCTYPE html> #24

Closed iateadonut closed 8 years ago

iateadonut commented 8 years ago

Works fine with just at the top of a file. No longer works when using <!DOCTYPE html> instead.

Demo here: http://100wires.com/dragscroll/index1.html http://100wires.com/dragscroll/index3.html

The only difference between the two is the first line, or <!DOCTYPE html>

iateadonut commented 8 years ago

tested on chrome and it works there. only doesn't work on firefox.

asvd commented 8 years ago

ok, reproduced, thanks for the feedback...

asvd commented 8 years ago

I cannot reproduce the issue on http://asvd.github.io/dragscroll/index.html

It also has the specified doctype, but it works. Can you provide simplier example, i.e. without the additional libs included? For now it seems like they break the dragscroll somehow only if the doctype is specified

iateadonut commented 8 years ago

I've taken out everything possible: http://100wires.com/dragscroll/ http://100wires.com/dragscroll/index4.html

asvd commented 8 years ago

http://stackoverflow.com/questions/5769148/scrolltop-and-doctype

This is the reason, will prepare a fix soon

asvd commented 8 years ago

Fixed in v0.0.7