angularjs-scroll-glue icon indicating copy to clipboard operation
angularjs-scroll-glue copied to clipboard

Enabled scroll-glue to work on the body element.

Open marcells opened this issue 11 years ago • 1 comments

Hi,

I made scroll-glue work on body elements. In that case you've to register on the window.onscroll event. The calculation in shouldActivateAutoScroll() is a bit different to normal elements, too.

I tried to create karma tests for the extended behavior, but if I understand it correctly, the compiled templates will be appended below the body element. That would result in two nested body tags, which obviously doesn't work.

Kind regards Marcell

marcells avatar Oct 23 '14 00:10 marcells

Would you be able to rebase this change on the latest master branch, in case it is still valid?

oliversalzburg avatar Jun 03 '16 16:06 oliversalzburg