Skip to content

Commit

Permalink
Released 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed May 11, 2017
1 parent d9854cf commit ce0b3e6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions angular-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ angular.module('duScroll.scrollHelpers', ['duScroll.requestAnimation'])
}
var el = unwrap(this);
if(isDocument(el)) {
return angular.element($window).duScrollTo(left, top);
return $window.scrollTo(left, top);
}
el.scrollLeft = left;
el.scrollTop = top;
Expand Down Expand Up @@ -123,7 +123,7 @@ angular.module('duScroll.scrollHelpers', ['duScroll.requestAnimation'])
progress = timestamp - startTime;
var percent = (progress >= duration ? 1 : easing(progress/duration));

el.duScrollTo(
el.scrollTo(
startLeft + Math.ceil(deltaLeft * percent),
startTop + Math.ceil(deltaTop * percent)
);
Expand Down
2 changes: 1 addition & 1 deletion angular-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion angular-scroll.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-scroll",
"version": "1.0.1",
"version": "1.0.2",
"description": "Scrollspy, animated scrollTo and scroll events",
"keywords": [
"angular",
Expand Down

0 comments on commit ce0b3e6

Please sign in to comment.