@egjs/flicking 4.12.0-beta.10 → 4.12.0-beta.11

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.
@@ -0,0 +1,44 @@
1
+ .flicking-viewport {
2
+ position: relative;
3
+ overflow: hidden;
4
+ }
5
+
6
+ .flicking-viewport.vertical {
7
+ display: -webkit-inline-box;
8
+ display: -ms-inline-flexbox;
9
+ display: inline-flex;
10
+ }
11
+
12
+ .flicking-viewport.vertical > .flicking-camera {
13
+ display: -webkit-inline-box;
14
+ display: -ms-inline-flexbox;
15
+ display: inline-flex;
16
+ -webkit-box-orient: vertical;
17
+ -webkit-box-direction: normal;
18
+ -ms-flex-direction: column;
19
+ flex-direction: column;
20
+ }
21
+
22
+ .flicking-viewport.flicking-hidden > .flicking-camera > * {
23
+ visibility: hidden;
24
+ }
25
+
26
+ .flicking-camera {
27
+ width: 100%;
28
+ height: 100%;
29
+ display: -webkit-box;
30
+ display: -ms-flexbox;
31
+ display: flex;
32
+ position: relative;
33
+ -webkit-box-orient: horizontal;
34
+ -webkit-box-direction: normal;
35
+ -ms-flex-direction: row;
36
+ flex-direction: row;
37
+ z-index: 1;
38
+ will-change: transform;
39
+ }
40
+
41
+ .flicking-camera > * {
42
+ -ms-flex-negative: 0;
43
+ flex-shrink: 0;
44
+ }
@@ -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.10
7
+ version: 4.12.0-beta.11
8
8
  */
9
9
  import Component, { ComponentEvent } from '@egjs/component';
10
10
  import Axes, { PanInput } from '@egjs/axes';
@@ -1590,6 +1590,9 @@ var HoldingState = /*#__PURE__*/function (_super) {
1590
1590
  axesEvent = ctx.axesEvent,
1591
1591
  transitTo = ctx.transitTo;
1592
1592
  var inputEvent = axesEvent.inputEvent;
1593
+ if (!inputEvent) {
1594
+ return;
1595
+ }
1593
1596
  var offset = flicking.horizontal ? inputEvent.offsetX : inputEvent.offsetY;
1594
1597
  var moveStartEvent = new ComponentEvent(EVENTS.MOVE_START, {
1595
1598
  isTrusted: axesEvent.isTrusted,
@@ -5449,6 +5452,9 @@ var Panel = /*#__PURE__*/function () {
5449
5452
  var flicking = this._flicking;
5450
5453
  var horizontal = flicking.horizontal,
5451
5454
  useFractionalSize = flicking.useFractionalSize;
5455
+ if (!el) {
5456
+ return this;
5457
+ }
5452
5458
  if (cached) {
5453
5459
  this._size = cached.size;
5454
5460
  this._margin = __assign({}, cached.margin);
@@ -7910,7 +7916,7 @@ var Flicking = /*#__PURE__*/function (_super) {
7910
7916
  * Flicking.VERSION; // ex) 4.0.0
7911
7917
  * ```
7912
7918
  */
7913
- Flicking.VERSION = "4.12.0-beta.10";
7919
+ Flicking.VERSION = "4.12.0-beta.11";
7914
7920
  return Flicking;
7915
7921
  }(Component);
7916
7922
 
@@ -7921,7 +7927,9 @@ var SIDE_EVENTS = {
7921
7927
  MOVE: "sideMove",
7922
7928
  MOVE_END: "sideMoveEnd",
7923
7929
  WILL_CHANGE: "sideWillChange",
7924
- CHANGED: "sideChanged"
7930
+ CHANGED: "sideChanged",
7931
+ WILL_RESTORE: "sideWillRestore",
7932
+ RESTORED: "sideRestored"
7925
7933
  };
7926
7934
  var CrossFlicking = /*#__PURE__*/function (_super) {
7927
7935
  __extends(CrossFlicking, _super);