fix scroll to compensate for fixed header
This commit is contained in:
parent
19d2848835
commit
87b2c7da9d
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user