Skip to content

Commit d6f1fce

Browse files
v1.1.2
1 parent c530919 commit d6f1fce

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-scroll-pane",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"homepage": "https://github.com/lght/angular-scroll-pane",
55
"authors": [
66
"Geoffrey Bauduin <[email protected]>"

dist/angular-jscrollpane.js

+7
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
} else {
2727
$timeout(fn, 0);
2828
}
29+
$scope.$watch((function() {
30+
return $attrs.scrollAlwaysTop;
31+
}), function(newVal, oldVal) {
32+
if (newVal && $scope.pane) {
33+
$scope.pane.scrollToY(0);
34+
}
35+
});
2936
return $scope.$on("reinit-pane", function(event, id) {
3037
if (id === $attrs.id && $scope.pane) {
3138
console.log("Reinit pane " + id);

dist/angular-jscrollpane.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-scroll-pane",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "AngularJS bindings for jScrollPane",
55
"main": "jscrollpane.js",
66
"scripts": {

0 commit comments

Comments
 (0)