From 9048db19b8600ddd6fdee0e28ace86c75ab134a0 Mon Sep 17 00:00:00 2001 From: ruanyf Date: Tue, 29 Apr 2014 20:11:10 +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 f8b0927..556d264 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) ? 0 : treshold; + treshold = (treshold < 0) ? 10 : treshold; $('#flip').css('bottom', (-treshold)+'px');