Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

embla-carousel

Package Overview
Dependencies
Maintainers
1
Versions
235
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

embla-carousel - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

3

lib/components/dragHandler.d.ts

@@ -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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc