Skip to content

Commit

Permalink
alirezamirian#11 scroll up from bottom of the page bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Maurer committed Nov 9, 2017
1 parent f6c841f commit 092d4b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 1 addition & 5 deletions dist/mde-swipe-to-refresh.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,7 @@
scope.state = State.Pulling;
}

if(scope.state == State.Pulling){
event.preventDefault();
}

if(movement > 0){
if(movement > 0){
scope.movement = Math.min(calculateMovement(movement, scope.mdeThreshold));
scope.progress = Math.min( scope.movement/scope.mdeThreshold, 1);
scope.$digest();
Expand Down
2 changes: 1 addition & 1 deletion dist/mde-swipe-to-refresh.min.js

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

4 changes: 2 additions & 2 deletions src/swipe-to-refresh/swipe-to-refresh.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@
scope.state = State.Pulling;
}

if(scope.state == State.Pulling){
/*if(scope.state == State.Pulling){
event.preventDefault();
}
}*/

if(movement > 0){
scope.movement = Math.min(calculateMovement(movement, scope.mdeThreshold));
Expand Down

0 comments on commit 092d4b7

Please sign in to comment.