Skip to content

Commit

Permalink
Released 0.6.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Feb 20, 2015
1 parent a492cae commit db40a77
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions angular-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ angular.module('duScroll.scrollHelpers', ['duScroll.requestAnimation'])
deltaLeft = Math.round(left - startLeft),
deltaTop = Math.round(top - startTop);

var startTime = null;
var startTime = null, progress = 0;
var el = this;

var cancelOnEvents = 'scroll mousedown mousewheel touchmove keydown';
var cancelScrollAnimation = function($event) {
if (!$event || $event.which > 0) {
if (!$event || (progress && $event.which > 0)) {
el.unbind(cancelOnEvents, cancelScrollAnimation);
cancelAnimation(scrollAnimation);
deferred.reject();
Expand All @@ -106,7 +106,7 @@ angular.module('duScroll.scrollHelpers', ['duScroll.requestAnimation'])
startTime = timestamp;
}

var progress = timestamp - startTime;
progress = timestamp - startTime;
var percent = (progress >= duration ? 1 : easing(progress/duration));

el.scrollTo(
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 bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-scroll",
"version": "0.6.4",
"version": "0.6.5",
"main": "angular-scroll.js",
"ignore": [
"**/.*",
Expand Down
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": "0.6.4",
"version": "0.6.5",
"description": "Scrollspy, animated scrollTo and scroll events",
"keywords": [
"angular",
Expand Down

0 comments on commit db40a77

Please sign in to comment.