@egjs/flicking 4.10.8-beta.1 → 4.11.0

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.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.10.8-beta.1
7
+ version: 4.11.0
8
8
  */
9
9
  (function (global, factory) {
10
10
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@egjs/component'), require('@egjs/axes'), require('@egjs/imready')) :
@@ -2131,6 +2131,7 @@ version: 4.10.8-beta.1
2131
2131
  inputType: flicking.inputType,
2132
2132
  threshold: 1,
2133
2133
  iOSEdgeSwipeThreshold: flicking.iOSEdgeSwipeThreshold,
2134
+ preventDefaultOnDrag: flicking.preventDefaultOnDrag,
2134
2135
  scale: flicking.horizontal ? [-1, 0] : [0, -1],
2135
2136
  releaseOnScroll: true
2136
2137
  });
@@ -6057,30 +6058,32 @@ version: 4.10.8-beta.1
6057
6058
  iOSEdgeSwipeThreshold = _z === void 0 ? 30 : _z,
6058
6059
  _0 = _b.preventClickOnDrag,
6059
6060
  preventClickOnDrag = _0 === void 0 ? true : _0,
6060
- _1 = _b.disableOnInit,
6061
- disableOnInit = _1 === void 0 ? false : _1,
6062
- _2 = _b.changeOnHold,
6063
- changeOnHold = _2 === void 0 ? false : _2,
6064
- _3 = _b.renderOnlyVisible,
6065
- renderOnlyVisible = _3 === void 0 ? false : _3,
6066
- _4 = _b.virtual,
6067
- virtual = _4 === void 0 ? null : _4,
6068
- _5 = _b.autoInit,
6069
- autoInit = _5 === void 0 ? true : _5,
6070
- _6 = _b.autoResize,
6071
- autoResize = _6 === void 0 ? true : _6,
6072
- _7 = _b.useResizeObserver,
6073
- useResizeObserver = _7 === void 0 ? true : _7,
6074
- _8 = _b.resizeDebounce,
6075
- resizeDebounce = _8 === void 0 ? 0 : _8,
6076
- _9 = _b.maxResizeDebounce,
6077
- maxResizeDebounce = _9 === void 0 ? 100 : _9,
6078
- _10 = _b.useFractionalSize,
6079
- useFractionalSize = _10 === void 0 ? false : _10,
6080
- _11 = _b.externalRenderer,
6081
- externalRenderer = _11 === void 0 ? null : _11,
6082
- _12 = _b.renderExternal,
6083
- renderExternal = _12 === void 0 ? null : _12;
6061
+ _1 = _b.preventDefaultOnDrag,
6062
+ preventDefaultOnDrag = _1 === void 0 ? false : _1,
6063
+ _2 = _b.disableOnInit,
6064
+ disableOnInit = _2 === void 0 ? false : _2,
6065
+ _3 = _b.changeOnHold,
6066
+ changeOnHold = _3 === void 0 ? false : _3,
6067
+ _4 = _b.renderOnlyVisible,
6068
+ renderOnlyVisible = _4 === void 0 ? false : _4,
6069
+ _5 = _b.virtual,
6070
+ virtual = _5 === void 0 ? null : _5,
6071
+ _6 = _b.autoInit,
6072
+ autoInit = _6 === void 0 ? true : _6,
6073
+ _7 = _b.autoResize,
6074
+ autoResize = _7 === void 0 ? true : _7,
6075
+ _8 = _b.useResizeObserver,
6076
+ useResizeObserver = _8 === void 0 ? true : _8,
6077
+ _9 = _b.resizeDebounce,
6078
+ resizeDebounce = _9 === void 0 ? 0 : _9,
6079
+ _10 = _b.maxResizeDebounce,
6080
+ maxResizeDebounce = _10 === void 0 ? 100 : _10,
6081
+ _11 = _b.useFractionalSize,
6082
+ useFractionalSize = _11 === void 0 ? false : _11,
6083
+ _12 = _b.externalRenderer,
6084
+ externalRenderer = _12 === void 0 ? null : _12,
6085
+ _13 = _b.renderExternal,
6086
+ renderExternal = _13 === void 0 ? null : _13;
6084
6087
  var _this = _super.call(this) || this;
6085
6088
  // Internal states
6086
6089
  _this._initialized = false;
@@ -6110,6 +6113,7 @@ version: 4.10.8-beta.1
6110
6113
  _this._bounce = bounce;
6111
6114
  _this._iOSEdgeSwipeThreshold = iOSEdgeSwipeThreshold;
6112
6115
  _this._preventClickOnDrag = preventClickOnDrag;
6116
+ _this._preventDefaultOnDrag = preventDefaultOnDrag;
6113
6117
  _this._disableOnInit = disableOnInit;
6114
6118
  _this._changeOnHold = changeOnHold;
6115
6119
  _this._renderOnlyVisible = renderOnlyVisible;
@@ -6908,6 +6912,27 @@ version: 4.10.8-beta.1
6908
6912
  enumerable: false,
6909
6913
  configurable: true
6910
6914
  });
6915
+ Object.defineProperty(__proto, "preventDefaultOnDrag", {
6916
+ /**
6917
+ * Whether to use the {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} when the user starts dragging
6918
+ * @ko 사용자가 드래그를 시작할 때 {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} 실행 여부
6919
+ * @type {boolean}
6920
+ * @default false
6921
+ * @see {@link https://naver.github.io/egjs-flicking/Options#preventDefaultOnDrag preventDefaultOnDrag ( Options )}
6922
+ */
6923
+ get: function () {
6924
+ return this._preventDefaultOnDrag;
6925
+ },
6926
+ set: function (val) {
6927
+ this._preventDefaultOnDrag = val;
6928
+ var panInput = this._control.controller.panInput;
6929
+ if (panInput) {
6930
+ panInput.options.preventDefaultOnDrag = val;
6931
+ }
6932
+ },
6933
+ enumerable: false,
6934
+ configurable: true
6935
+ });
6911
6936
  Object.defineProperty(__proto, "disableOnInit", {
6912
6937
  /**
6913
6938
  * Automatically call {@link Flicking#disableInput disableInput()} on initialization
@@ -7842,7 +7867,7 @@ version: 4.10.8-beta.1
7842
7867
  * Flicking.VERSION; // ex) 4.0.0
7843
7868
  * ```
7844
7869
  */
7845
- Flicking.VERSION = "4.10.8-beta.1";
7870
+ Flicking.VERSION = "4.11.0";
7846
7871
  return Flicking;
7847
7872
  }(Component);
7848
7873