diff --git a/src/helpers/fastSmoothScroll.ts b/src/helpers/fastSmoothScroll.ts index 3a16263f..3eb5082a 100644 --- a/src/helpers/fastSmoothScroll.ts +++ b/src/helpers/fastSmoothScroll.ts @@ -151,6 +151,11 @@ function scrollWithJs(options: ScrollOptions): Promise { break; } */ + if(Math.abs(path - (margin || 0)) < 1) { + cancelAnimationByKey(container); + return Promise.resolve(); + } + if(axis === 'y') { if(forceDirection === undefined) { if(path > maxDistance) {