Fix unneeded scroll event
This commit is contained in:
parent
59d588a5e6
commit
77d48d764d
@ -151,6 +151,11 @@ function scrollWithJs(options: ScrollOptions): Promise<void> {
|
||||
break;
|
||||
} */
|
||||
|
||||
if(Math.abs(path - (margin || 0)) < 1) {
|
||||
cancelAnimationByKey(container);
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
if(axis === 'y') {
|
||||
if(forceDirection === undefined) {
|
||||
if(path > maxDistance) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user