Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
connect(observer) {
// User intetened direction
this._userDirection = this._direction;
// In VR Mode, Use ALL direction if direction is not none
// Because horizontal and vertical is changed dynamically by screen rotation.
// this._direction is used to initialize hammerjs
if (this._useRotation && (this._direction & Axes.DIRECTION_ALL)) {
this._direction = Axes.DIRECTION_ALL;
}
super.connect(observer);
}
Flicking.utils = utils;
Flicking.VERSION = "2.5.1";
Flicking.consts = {
EVENTS: EVENTS,
TRANSFORM: TRANSFORM,
SUPPORT_WILLCHANGE: SUPPORT_WILLCHANGE,
IS_ANDROID2: IS_ANDROID2
};
Flicking.DIRECTION_NONE = Axes.DIRECTION_NONE;
Flicking.DIRECTION_LEFT = Axes.DIRECTION_LEFT;
Flicking.DIRECTION_RIGHT = Axes.DIRECTION_RIGHT;
Flicking.DIRECTION_UP = Axes.DIRECTION_UP;
Flicking.DIRECTION_DOWN = Axes.DIRECTION_DOWN;
Flicking.DIRECTION_HORIZONTAL = Axes.DIRECTION_HORIZONTAL;
Flicking.DIRECTION_VERTICAL = Axes.DIRECTION_VERTICAL;
Flicking.DIRECTION_ALL = Axes.DIRECTION_ALL;
return Flicking;
}();
constructor(el, options) {
super(el, options);
this._useRotation = false;
this._screenRotationAngle = null;
this.setUseRotation(!!(options && options.useRotation));
this._userDirection = Axes.DIRECTION_ALL;
}
* @type {Number}
* @default 24
*/
static DIRECTION_VERTICAL = Axes.DIRECTION_VERTICAL;
/**
* Constant value for all direction.
* @ko all 방향에 대한 상수 값.
* @name DIRECTION_ALL
* @memberof eg.Flicking
* @static
* @constant
* @type {Number}
* @default 30
*/
static DIRECTION_ALL = Axes.DIRECTION_ALL;
}