Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
tutils.simulator($el, { deltaX: 50, deltaY: -100 }, () => {
// Is up during touch hold?
expect(check(directionHold[id], Axes.DIRECTION_UP)).to.be.ok;
// Is up during touch unhold?
expect(check(directionUnhold[id], Axes.DIRECTION_UP)).to.be.ok;
done();
});
});
tutils.simulator($el, { deltaX: 50, deltaY: -100 }, () => {
// Is up during touch hold?
expect(check(directionHold[id], Axes.DIRECTION_UP)).to.be.ok;
// Is up during touch unhold?
expect(check(directionUnhold[id], Axes.DIRECTION_UP)).to.be.ok;
done();
});
});
* @type {Number}
* @default 4
*/
static DIRECTION_RIGHT = Axes.DIRECTION_RIGHT;
/**
* Constant value for up direction.
* @ko up 방향에 대한 상수 값.
* @name DIRECTION_UP
* @memberof eg.Flicking
* @static
* @constant
* @type {Number}
* @default 8
*/
static DIRECTION_UP = Axes.DIRECTION_UP;
/**
* Constant value for down direction.
* @ko down 방향에 대한 상수 값.
* @name DIRECTION_DOWN
* @memberof eg.Flicking
* @static
* @constant
* @type {Number}
* @default 16
*/
static DIRECTION_DOWN = Axes.DIRECTION_DOWN;
/**
* Constant value for horizontal direction.
* @ko horizontal 방향에 대한 상수 값.
return Flicking;
}(Mixin(Component)["with"](eventHandler));
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;
}();