@egjs/flicking 4.12.0-beta.6 → 4.12.0-beta.7
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/dist/flicking.cjs.js +14 -16
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +14 -16
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +14 -16
- 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 +14 -16
- 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 +2 -1
- package/src/CrossFlicking.ts +11 -13
package/dist/flicking.esm.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.12.0-beta.
|
|
7
|
+
version: 4.12.0-beta.7
|
|
8
8
|
*/
|
|
9
9
|
import Component, { ComponentEvent } from '@egjs/component';
|
|
10
10
|
import Axes, { PanInput } from '@egjs/axes';
|
|
@@ -7893,7 +7893,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7893
7893
|
* Flicking.VERSION; // ex) 4.0.0
|
|
7894
7894
|
* ```
|
|
7895
7895
|
*/
|
|
7896
|
-
Flicking.VERSION = "4.12.0-beta.
|
|
7896
|
+
Flicking.VERSION = "4.12.0-beta.7";
|
|
7897
7897
|
return Flicking;
|
|
7898
7898
|
}(Component);
|
|
7899
7899
|
|
|
@@ -7942,21 +7942,19 @@ var CrossFlicking = /*#__PURE__*/function (_super) {
|
|
|
7942
7942
|
_this._nextIndex = visiblePanels[0].index;
|
|
7943
7943
|
}
|
|
7944
7944
|
// _syncToCategory에서 완전히 가로 이동이 이루어지기 전에 세로 방향 index가 변하는 경우가 있어 timeout으로 처리
|
|
7945
|
-
|
|
7946
|
-
_this.
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
void child.moveTo(end, 0);
|
|
7957
|
-
}
|
|
7945
|
+
_this._sideFlicking.forEach(function (child, i) {
|
|
7946
|
+
if (_this._nextIndex !== i) {
|
|
7947
|
+
var _a = _this._sideState[i],
|
|
7948
|
+
start = _a.start,
|
|
7949
|
+
end = _a.end;
|
|
7950
|
+
if (child.index < start) {
|
|
7951
|
+
child.stopAnimation();
|
|
7952
|
+
void child.moveTo(start, 0);
|
|
7953
|
+
} else if (child.index > end) {
|
|
7954
|
+
child.stopAnimation();
|
|
7955
|
+
void child.moveTo(end, 0);
|
|
7958
7956
|
}
|
|
7959
|
-
}
|
|
7957
|
+
}
|
|
7960
7958
|
});
|
|
7961
7959
|
if (e.isTrusted) {
|
|
7962
7960
|
_this._syncToCategory(_this._sideFlicking[_this._nextIndex].index, _this._nextIndex);
|