@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.
@@ -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
  import Component, { ComponentEvent } from '@egjs/component';
10
10
  import Axes, { PanInput } from '@egjs/axes';
@@ -2085,6 +2085,7 @@ var AxesController = /*#__PURE__*/function () {
2085
2085
  inputType: flicking.inputType,
2086
2086
  threshold: 1,
2087
2087
  iOSEdgeSwipeThreshold: flicking.iOSEdgeSwipeThreshold,
2088
+ preventDefaultOnDrag: flicking.preventDefaultOnDrag,
2088
2089
  scale: flicking.horizontal ? [-1, 0] : [0, -1],
2089
2090
  releaseOnScroll: true
2090
2091
  });
@@ -5963,30 +5964,32 @@ var Flicking = /*#__PURE__*/function (_super) {
5963
5964
  iOSEdgeSwipeThreshold = _z === void 0 ? 30 : _z,
5964
5965
  _0 = _b.preventClickOnDrag,
5965
5966
  preventClickOnDrag = _0 === void 0 ? true : _0,
5966
- _1 = _b.disableOnInit,
5967
- disableOnInit = _1 === void 0 ? false : _1,
5968
- _2 = _b.changeOnHold,
5969
- changeOnHold = _2 === void 0 ? false : _2,
5970
- _3 = _b.renderOnlyVisible,
5971
- renderOnlyVisible = _3 === void 0 ? false : _3,
5972
- _4 = _b.virtual,
5973
- virtual = _4 === void 0 ? null : _4,
5974
- _5 = _b.autoInit,
5975
- autoInit = _5 === void 0 ? true : _5,
5976
- _6 = _b.autoResize,
5977
- autoResize = _6 === void 0 ? true : _6,
5978
- _7 = _b.useResizeObserver,
5979
- useResizeObserver = _7 === void 0 ? true : _7,
5980
- _8 = _b.resizeDebounce,
5981
- resizeDebounce = _8 === void 0 ? 0 : _8,
5982
- _9 = _b.maxResizeDebounce,
5983
- maxResizeDebounce = _9 === void 0 ? 100 : _9,
5984
- _10 = _b.useFractionalSize,
5985
- useFractionalSize = _10 === void 0 ? false : _10,
5986
- _11 = _b.externalRenderer,
5987
- externalRenderer = _11 === void 0 ? null : _11,
5988
- _12 = _b.renderExternal,
5989
- renderExternal = _12 === void 0 ? null : _12;
5967
+ _1 = _b.preventDefaultOnDrag,
5968
+ preventDefaultOnDrag = _1 === void 0 ? false : _1,
5969
+ _2 = _b.disableOnInit,
5970
+ disableOnInit = _2 === void 0 ? false : _2,
5971
+ _3 = _b.changeOnHold,
5972
+ changeOnHold = _3 === void 0 ? false : _3,
5973
+ _4 = _b.renderOnlyVisible,
5974
+ renderOnlyVisible = _4 === void 0 ? false : _4,
5975
+ _5 = _b.virtual,
5976
+ virtual = _5 === void 0 ? null : _5,
5977
+ _6 = _b.autoInit,
5978
+ autoInit = _6 === void 0 ? true : _6,
5979
+ _7 = _b.autoResize,
5980
+ autoResize = _7 === void 0 ? true : _7,
5981
+ _8 = _b.useResizeObserver,
5982
+ useResizeObserver = _8 === void 0 ? true : _8,
5983
+ _9 = _b.resizeDebounce,
5984
+ resizeDebounce = _9 === void 0 ? 0 : _9,
5985
+ _10 = _b.maxResizeDebounce,
5986
+ maxResizeDebounce = _10 === void 0 ? 100 : _10,
5987
+ _11 = _b.useFractionalSize,
5988
+ useFractionalSize = _11 === void 0 ? false : _11,
5989
+ _12 = _b.externalRenderer,
5990
+ externalRenderer = _12 === void 0 ? null : _12,
5991
+ _13 = _b.renderExternal,
5992
+ renderExternal = _13 === void 0 ? null : _13;
5990
5993
  var _this = _super.call(this) || this;
5991
5994
  // Internal states
5992
5995
  _this._initialized = false;
@@ -6016,6 +6019,7 @@ var Flicking = /*#__PURE__*/function (_super) {
6016
6019
  _this._bounce = bounce;
6017
6020
  _this._iOSEdgeSwipeThreshold = iOSEdgeSwipeThreshold;
6018
6021
  _this._preventClickOnDrag = preventClickOnDrag;
6022
+ _this._preventDefaultOnDrag = preventDefaultOnDrag;
6019
6023
  _this._disableOnInit = disableOnInit;
6020
6024
  _this._changeOnHold = changeOnHold;
6021
6025
  _this._renderOnlyVisible = renderOnlyVisible;
@@ -6814,6 +6818,27 @@ var Flicking = /*#__PURE__*/function (_super) {
6814
6818
  enumerable: false,
6815
6819
  configurable: true
6816
6820
  });
6821
+ Object.defineProperty(__proto, "preventDefaultOnDrag", {
6822
+ /**
6823
+ * Whether to use the {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} when the user starts dragging
6824
+ * @ko 사용자가 드래그를 시작할 때 {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} 실행 여부
6825
+ * @type {boolean}
6826
+ * @default false
6827
+ * @see {@link https://naver.github.io/egjs-flicking/Options#preventDefaultOnDrag preventDefaultOnDrag ( Options )}
6828
+ */
6829
+ get: function () {
6830
+ return this._preventDefaultOnDrag;
6831
+ },
6832
+ set: function (val) {
6833
+ this._preventDefaultOnDrag = val;
6834
+ var panInput = this._control.controller.panInput;
6835
+ if (panInput) {
6836
+ panInput.options.preventDefaultOnDrag = val;
6837
+ }
6838
+ },
6839
+ enumerable: false,
6840
+ configurable: true
6841
+ });
6817
6842
  Object.defineProperty(__proto, "disableOnInit", {
6818
6843
  /**
6819
6844
  * Automatically call {@link Flicking#disableInput disableInput()} on initialization
@@ -7748,7 +7773,7 @@ var Flicking = /*#__PURE__*/function (_super) {
7748
7773
  * Flicking.VERSION; // ex) 4.0.0
7749
7774
  * ```
7750
7775
  */
7751
- Flicking.VERSION = "4.10.8-beta.1";
7776
+ Flicking.VERSION = "4.11.0";
7752
7777
  return Flicking;
7753
7778
  }(Component);
7754
7779