angular-vs-repeat icon indicating copy to clipboard operation
angular-vs-repeat copied to clipboard

Support to scroll to a particular item

Open marcelotavares opened this issue 9 years ago • 2 comments

In previous versions there was the vsScrollSetting attribute that had the scrollIndex property to go to a particular item. But this feature was removed in newer versions and there is no substitute for it.

marcelotavares avatar May 26 '16 13:05 marcelotavares

Proposed solution:

                    $scope.$on('vsScrollToItem', function(event, index) {

                        if(scrollPos=='scrollTop')
                            $scrollParent.scrollTop($scope.sizesCumulative[index]);
                        else
                            $scrollParent.scrollLeft($scope.sizesCumulative[index]);

                    });

marcelotavares avatar May 26 '16 15:05 marcelotavares

See https://github.com/kamilkp/angular-vs-repeat/issues/144

mdarveau avatar Dec 14 '16 01:12 mdarveau