embla-carousel
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
root["EmblaCarousel"] = factory(); | ||
})(window, function() { | ||
})((typeof self !== 'undefined' ? self : this), function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -1094,7 +1094,6 @@ /******/ // The module cache | ||
state.isMouse = !!evt.type.match(/mouse/); | ||
state.isDown = true; | ||
pointer.down(evt); | ||
dragStartLocation.set(target); | ||
target.set(location); | ||
mover.useDefaultMass(); | ||
state.isDown = true; | ||
mover.useSpeed(80).useDefaultMass(); | ||
@@ -1135,5 +1134,3 @@ animation.start(); | ||
var travel = params.travel; | ||
var boostedForce = pointer.up() * pointerForceBoost(); | ||
var force = allowedForce(boostedForce); | ||
var speed = movementSpeed(); | ||
var force = pointer.up() * pointerForceBoost(); | ||
var diffToTarget = target.get() - dragStartLocation.get(); | ||
@@ -1146,5 +1143,5 @@ var isMoving = Math.abs(diffToTarget) >= 0.5; | ||
interactionEvents.removeAll(); | ||
mover.useSpeed(speed); | ||
mover.useSpeed(movementSpeed()); | ||
travel.toDistance(allowedForce(force)); | ||
events.dispatch('dragEnd'); | ||
travel.toDistance(force); | ||
} | ||
@@ -1151,0 +1148,0 @@ |
{ | ||
"name": "embla-carousel", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"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
70330
1960