From 07b01e372487d0639385667d8291b8ff72dc8bcc Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 29 Apr 2014 20:12:02 +0800 Subject: [PATCH] add page flip --- js/ditto.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ditto.js b/js/ditto.js index 556d264..5d76acb 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -43,7 +43,7 @@ function initialize() { var newScroll = $(document).scrollTop(), diff = newScroll-lastScroll; treshold = (treshold+diff>headerHeight) ? headerHeight : treshold+diff; - treshold = (treshold < 0) ? 10 : treshold; + treshold = (treshold < 0) ? -10 : treshold; $('#flip').css('bottom', (-treshold)+'px');