@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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egjs/flicking",
|
|
3
|
-
"version": "4.12.0-beta.
|
|
3
|
+
"version": "4.12.0-beta.7",
|
|
4
4
|
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.",
|
|
5
5
|
"main": "dist/flicking.cjs.js",
|
|
6
6
|
"module": "dist/flicking.esm.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"scripts": {
|
|
14
14
|
"start": "concurrently \"rollup -w --config ./rollup.config.dev.js\" \"http-serve\"",
|
|
15
15
|
"build": "run-s build:bundle build:declaration build:css printsizes",
|
|
16
|
+
"build-react": "run-s build:bundle build:declaration && pvu --build=react-flicking",
|
|
16
17
|
"build:bundle": "rm -rf ./dist && rollup -c",
|
|
17
18
|
"build:declaration": "rm -rf ./declaration && tsc -p tsconfig.declaration.json",
|
|
18
19
|
"build:css": "run-s build:css-clear build:sass build:css-prefix build:css-min",
|
package/src/CrossFlicking.ts
CHANGED
|
@@ -349,20 +349,18 @@ export class CrossFlicking extends Flicking {
|
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
// _syncToCategory에서 완전히 가로 이동이 이루어지기 전에 세로 방향 index가 변하는 경우가 있어 timeout으로 처리
|
|
352
|
-
|
|
353
|
-
this.
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
void child.moveTo(end, 0);
|
|
363
|
-
}
|
|
352
|
+
this._sideFlicking.forEach((child, i) => {
|
|
353
|
+
if (this._nextIndex !== i) {
|
|
354
|
+
const { start, end } = this._sideState[i];
|
|
355
|
+
|
|
356
|
+
if (child.index < start) {
|
|
357
|
+
child.stopAnimation();
|
|
358
|
+
void child.moveTo(start, 0);
|
|
359
|
+
} else if (child.index > end) {
|
|
360
|
+
child.stopAnimation();
|
|
361
|
+
void child.moveTo(end, 0);
|
|
364
362
|
}
|
|
365
|
-
}
|
|
363
|
+
}
|
|
366
364
|
});
|
|
367
365
|
|
|
368
366
|
if (e.isTrusted) {
|