add page flip

This commit is contained in:
ruanyf
2014-04-29 20:12:02 +08:00
parent 9048db19b8
commit 07b01e3724
+1 -1
View File
@@ -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');