Scroll any div, re: #29
umdstu opened this issue · comments
#29 was closed, it was never merged in the 1.4 version. Things have obviously changed significantly since then, but this plugin still does not support scrolling in an element other than window.
I tried to use the ground work laid in #29 to modify the current version but didn't succeed.
Is this something that can be done easier now with the current version?
Well, that was easier than I thought. I'll make a branch to show what I did, but it only works on element IDs not classes, though that could be expanded.
Like this:
umdstu@0a4f0cd
But as I mention in the commit message, root
is still used elsewhere. But this gets scrolling to work in an element.