@egjs/flicking 4.11.3-beta.1 → 4.11.3-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declaration/control/Control.d.ts +1 -1
- package/dist/flicking.cjs.js +9 -11
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +9 -11
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +9 -11
- package/dist/flicking.js.map +1 -1
- package/dist/flicking.min.js +2 -2
- package/dist/flicking.min.js.map +1 -1
- package/dist/flicking.pkgd.js +9 -11
- package/dist/flicking.pkgd.js.map +1 -1
- package/dist/flicking.pkgd.min.js +2 -2
- package/dist/flicking.pkgd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/camera/Camera.ts +2 -4
- package/src/control/Control.ts +3 -3
package/dist/flicking.pkgd.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/flicking
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-flicking
|
|
7
|
-
version: 4.11.3-beta.
|
|
7
|
+
version: 4.11.3-beta.2
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -6798,7 +6798,7 @@ version: 4.11.3-beta.1
|
|
|
6798
6798
|
var position;
|
|
6799
6799
|
return __generator(this, function (_c) {
|
|
6800
6800
|
position = this._getPosition(panel, direction);
|
|
6801
|
-
this._triggerIndexChangeEvent(panel, panel.position, axesEvent);
|
|
6801
|
+
this._triggerIndexChangeEvent(panel, panel.position, axesEvent, direction);
|
|
6802
6802
|
return [2 /*return*/, this._animateToPosition({
|
|
6803
6803
|
position: position,
|
|
6804
6804
|
duration: duration,
|
|
@@ -6840,7 +6840,7 @@ version: 4.11.3-beta.1
|
|
|
6840
6840
|
this._activePanel = control._activePanel;
|
|
6841
6841
|
this._controller = control._controller;
|
|
6842
6842
|
};
|
|
6843
|
-
__proto._triggerIndexChangeEvent = function (panel, position, axesEvent) {
|
|
6843
|
+
__proto._triggerIndexChangeEvent = function (panel, position, axesEvent, direction) {
|
|
6844
6844
|
var _a;
|
|
6845
6845
|
var flicking = getFlickingAttached(this._flicking);
|
|
6846
6846
|
var triggeringEvent = panel !== this._activePanel ? EVENTS.WILL_CHANGE : EVENTS.WILL_RESTORE;
|
|
@@ -6850,7 +6850,7 @@ version: 4.11.3-beta.1
|
|
|
6850
6850
|
index: panel.index,
|
|
6851
6851
|
panel: panel,
|
|
6852
6852
|
isTrusted: (axesEvent === null || axesEvent === void 0 ? void 0 : axesEvent.isTrusted) || false,
|
|
6853
|
-
direction: getDirection$1((_a = activePanel === null || activePanel === void 0 ? void 0 : activePanel.position) !== null && _a !== void 0 ? _a : camera.position, position)
|
|
6853
|
+
direction: direction !== null && direction !== void 0 ? direction : getDirection$1((_a = activePanel === null || activePanel === void 0 ? void 0 : activePanel.position) !== null && _a !== void 0 ? _a : camera.position, position)
|
|
6854
6854
|
});
|
|
6855
6855
|
this._nextPanel = panel;
|
|
6856
6856
|
flicking.trigger(event);
|
|
@@ -8395,13 +8395,11 @@ version: 4.11.3-beta.1
|
|
|
8395
8395
|
* @return {AnchorPoint | null}
|
|
8396
8396
|
*/
|
|
8397
8397
|
__proto.findActiveAnchor = function () {
|
|
8398
|
-
var _a;
|
|
8399
8398
|
var flicking = getFlickingAttached(this._flicking);
|
|
8400
|
-
var
|
|
8401
|
-
|
|
8402
|
-
|
|
8403
|
-
|
|
8404
|
-
})) !== null && _a !== void 0 ? _a : this.findNearestAnchor(activePanel.position);
|
|
8399
|
+
var activeIndex = flicking.control.activeIndex;
|
|
8400
|
+
return find$1(this._anchors, function (anchor) {
|
|
8401
|
+
return anchor.panel.index === activeIndex;
|
|
8402
|
+
});
|
|
8405
8403
|
};
|
|
8406
8404
|
/**
|
|
8407
8405
|
* Clamp the given position between camera's range
|
|
@@ -12951,7 +12949,7 @@ version: 4.11.3-beta.1
|
|
|
12951
12949
|
* Flicking.VERSION; // ex) 4.0.0
|
|
12952
12950
|
* ```
|
|
12953
12951
|
*/
|
|
12954
|
-
Flicking.VERSION = "4.11.3-beta.
|
|
12952
|
+
Flicking.VERSION = "4.11.3-beta.2";
|
|
12955
12953
|
return Flicking;
|
|
12956
12954
|
}(Component);
|
|
12957
12955
|
|