From f71789ae5f208240c79252121cf43be3ccc785db Mon Sep 17 00:00:00 2001 From: Luis Lorenzo Date: Wed, 26 Nov 2014 20:27:53 +0100 Subject: [PATCH] Smoother scroll on large divs --- debiki-utterscroll.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/debiki-utterscroll.js b/debiki-utterscroll.js index 02f303f..2b16e66 100644 --- a/debiki-utterscroll.js +++ b/debiki-utterscroll.js @@ -417,7 +417,7 @@ debiki.Utterscroll = (function(options) { // slowly (unbearably slowly if there're lots of SVG arrows!) and // the reported mouse movement distances would becom terribly huge, // e.g. 1000px, and then the viewport jumps randomly. - var mul; + /* var mul; if (distTotal.x > 9){ mul = Math.log((distTotal.x - 9) / 3); if (mul > 1.7 && $.browser && $.browser.opera) mul = 1.7; // see comment above @@ -429,7 +429,6 @@ debiki.Utterscroll = (function(options) { if (mul > 1) distNow.y *= mul; } - /* debug( ' clnt: '+ event.clientX +', '+ event.clientY + ' strt: '+ startPos.x +', '+ startPos.y +