Skip to content

Commit

Permalink
Fix bug with aborted fling animations.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdresser committed Mar 13, 2014
1 parent 4c42869 commit ffe0e09
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions polymer-p2r.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,16 +136,21 @@ Polymer('polymer-p2r', {
loading = false;
if (pulling) {
setHeaderClassName('');
startY -= loadingOffset;
checkPulled();
} else if (isP2rVisible()) {
}
if (isP2rVisible()) {
setAnimationEnabled(true);
overscrollOffset = scroller.scrollTop;
scheduleUpdate();
}
}

scroller.addEventListener('touchstart', function(e) {
if (inFlingAnimation) {
scrollcontent.removeEventListener('webkitTransitionEnd', firstEnd);
scrollcontent.addEventListener('webkitTransitionEnd', secondEnd);
scroller.addEventListener('scroll', onScrollEvent);
}
inFlingAnimation = false;
fingersDown++;
seenTouchMoveThisSequence = false;
Expand Down

0 comments on commit ffe0e09

Please sign in to comment.