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

@egjs/flicking

Package Overview
Dependencies
Maintainers
10
Versions
147
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egjs/flicking - npm Package Compare versions

Comparing version 4.11.1 to 4.11.2-beta.0

1

declaration/control/Control.d.ts

@@ -11,2 +11,3 @@ import { OnRelease } from "@egjs/axes";

protected _activePanel: Panel | null;
protected _nextPanel: Panel | null;
get controller(): AxesController;

@@ -13,0 +14,0 @@ get activeIndex(): number;

2

package.json
{
"name": "@egjs/flicking",
"version": "4.11.1",
"version": "4.11.2-beta.0",
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",

@@ -5,0 +5,0 @@ "main": "dist/flicking.cjs.js",

@@ -26,2 +26,3 @@ /*

protected _activePanel: Panel | null;
protected _nextPanel: Panel | null;

@@ -321,2 +322,3 @@ /**

this._activePanel = newActivePanel;
this._nextPanel = null;

@@ -362,2 +364,4 @@ flicking.camera.updateAdaptiveHeight();

});
this._nextPanel = panel;
flicking.trigger(event);

@@ -364,0 +368,0 @@

@@ -193,3 +193,3 @@ /*

const camera = flicking.camera;
const activePanel = this._activePanel;
const currentPanel = this._nextPanel ?? this._activePanel;
const axesRange = this._controller.range;

@@ -203,7 +203,7 @@ const indexRange = this._indexRange;

if (!anchorAtPosition || !activePanel) {
if (!anchorAtPosition || !currentPanel) {
return Promise.reject(new FlickingError(ERROR.MESSAGE.POSITION_NOT_REACHABLE(position), ERROR.CODE.POSITION_NOT_REACHABLE));
}
const prevPos = activePanel.position;
const prevPos = currentPanel.position;
const posDelta = flicking.animating

@@ -238,3 +238,3 @@ ? state.delta

targetPos = targetAnchor.position;
} else if (isOverThreshold && anchorAtPosition.position !== activePanel.position) {
} else if (isOverThreshold && anchorAtPosition.position !== currentPanel.position) {
// Move to anchor at position

@@ -241,0 +241,0 @@ targetPanel = anchorAtPosition.panel;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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