Luegg / angularjs-scroll-glue

An AngularJs directive that automatically scrolls to the bottom of an element on changes in it's scope.
439 stars 78 forks source link

re-enable scroll glue #54

Open garretwilson opened 7 years ago

garretwilson commented 7 years ago

If a user scrolls, say, a horizontal block to the middle, scroll glue is suspended (i.e. turned off). How can I programmatically, if I add new horizontal content to the block, re-enable scroll glue?

oliversalzburg commented 7 years ago

Setting scrollTop or scrollLeft manually on the container should work. What values need to be set depends on the isAttached in use.