fix scroll to compensate for fixed header

This commit is contained in:
myshoeshurt 2018-01-09 15:41:35 +02:00 committed by Michael Zanetti
parent 19d2848835
commit 87b2c7da9d

View File

@ -82,7 +82,7 @@
}
} else {
var startY = container.getY()
var distance = Math.max(0, targetY) - startY
var distance = Math.max(0, targetY) - startY - 100
var startTime = new Date().getTime()
duration = duration || Math.min(Math.abs(distance), defaultDuration);
(function loopScroll() {