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');