Skip to content

Commit 07b01e3

Browse files
committed
add page flip
1 parent 9048db1 commit 07b01e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/ditto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function initialize() {
4343
var newScroll = $(document).scrollTop(),
4444
diff = newScroll-lastScroll;
4545
treshold = (treshold+diff>headerHeight) ? headerHeight : treshold+diff;
46-
treshold = (treshold < 0) ? 10 : treshold;
46+
treshold = (treshold < 0) ? -10 : treshold;
4747

4848
$('#flip').css('bottom', (-treshold)+'px');
4949

0 commit comments

Comments
 (0)