// import initSwipeyJqueryPlugin from './swipey.jquery.plugin';
class SwipeAnimation {
    bindEvents() {
        if (window['PointerEvent']) {
            return ['pointer'];
        }
        return ['touch'];
    }
    bounds(e, $d) { return {}; }
    context() { return {}; }
    direction() { return $.fn.swipey.DIRECTIONS.HORIZONTAL; }
    setGesturesEnabled(enabled) { this._isGesturesEnabled = enabled; }
    isGesturesEnabled() { return this._isGesturesEnabled; }
    goToLower(time) {
        this._$ele.swipeAnimation('gotoLower', time);
    }
    goToUpper(time) {
        this._$ele.swipeAnimation('gotoUpper', time);
    }
    onAnimation(e, distanceMoved) { }
    onUpper(event) { }
    onLower(event) { }
    threshold() { return 30; }
    constructor() {
        this._isGesturesEnabled = true;
    }
    init($ele, $swipeTargetEle) {
        this._$ele = $ele;
        $ele.swipeAnimation({
            animation: this.animation(),
            target: $swipeTargetEle,
            bounds: this.bounds.bind(this),
            bindEvents: this.bindEvents(),
            context: this.context.bind(this),
            direction: this.direction(),
            enableGestures: this.isGesturesEnabled.bind(this),
            onAnimation: this.onAnimation.bind(this),
            onLower: this.onLower.bind(this),
            onUpper: this.onUpper.bind(this),
            threshold: this.threshold(),
            disableMouse: true
        });
    }
}

/**
 * Generated bundle index. Do not edit.
 */

export { SwipeAnimation };
//# sourceMappingURL=index.mjs.map
