Skip to content

Commit

Permalink
Revert "fix the flickering of the right page when turning pages forwa…
Browse files Browse the repository at this point in the history
…rd, see liberation#8."

This reverts commit d64af83.
  • Loading branch information
lauxley committed Feb 26, 2013
1 parent d64af83 commit 1727082
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions digitalpaper/static/digitalpaper/js/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,17 +539,11 @@ var libeReader = function() {
'left': position.left});
transitionContainerElement.append(transitionElement);
evenSide.parent().append(transitionContainerElement);

transitionElement.animate({'width': 2 * finalWidth}, {
'step' : function _stepCallback(now,opts) {
// Stop browser rounding errors
now = opts.now = Math.round(now);
},
'complete' : function() {
cleanAfterShowPage(number);
jQuery(this).parent().detach();
}
});

transitionElement.animate({'width': 2 * finalWidth}, function() {
cleanAfterShowPage(number);
jQuery(this).parent().detach();
});
}

function _hideOldPages() {
Expand Down

0 comments on commit 1727082

Please sign in to comment.