embla-carousel
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -9,2 +9,3 @@ import { Animation } from './animation'; | ||
import { ScrollBody } from './scrollBody'; | ||
import { ScrollTarget } from './scrollTarget'; | ||
import { ScrollTo } from './scrollTo'; | ||
@@ -17,3 +18,2 @@ import { Vector1D } from './vector1d'; | ||
dragFree: boolean; | ||
snapSizes: number[]; | ||
dragTracker: DragTracker; | ||
@@ -24,2 +24,3 @@ location: Vector1D; | ||
scrollBody: ScrollBody; | ||
scrollTarget: ScrollTarget; | ||
index: Counter; | ||
@@ -26,0 +27,0 @@ limit: Limit; |
@@ -953,3 +953,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
scrollTo: scrollTo, | ||
snapSizes: snapSizes, | ||
scrollTarget: scrollTarget, | ||
target: target | ||
@@ -1234,8 +1234,8 @@ }); // Slider | ||
var scrollTo = params.scrollTo, | ||
snapSizes = params.snapSizes, | ||
scrollTarget = params.scrollTarget, | ||
index = params.index; | ||
var forceAbs = Math.abs(force); | ||
var halfSnap = snapSizes[index.get()] / 2; | ||
var reachedLimit = limit.reachedAny(target.get() + force); | ||
var seekNext = forceAbs > dragThreshold && forceAbs < halfSnap; | ||
var currentLocation = scrollTarget.byDistance(0, false); | ||
var targetChanged = currentLocation.index !== index.get(); | ||
var seekNext = !targetChanged && Math.abs(force) > dragThreshold; | ||
@@ -1242,0 +1242,0 @@ if (!dragFree && !reachedLimit && seekNext) { |
{ | ||
"name": "embla-carousel", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"author": "David Cetinkaya", | ||
@@ -5,0 +5,0 @@ "private": false, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129712
2335