Open marcelotavares opened 8 years ago
Proposed solution:
$scope.$on('vsScrollToItem', function(event, index) {
if(scrollPos=='scrollTop')
$scrollParent.scrollTop($scope.sizesCumulative[index]);
else
$scrollParent.scrollLeft($scope.sizesCumulative[index]);
});
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.