50 lines
1.6 KiB
JavaScript
50 lines
1.6 KiB
JavaScript
// Metro module 5330 (f5331).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import _getPrototypeOf from "./_getPrototypeOf";
|
|
import _inherits from "./_inherits";
|
|
import { BaseGesture } from "./Gesture";
|
|
let LongPressGesture;
|
|
let env3233 = {};
|
|
env3233[3] = function _isNativeReflectConstruct() {
|
|
let c14804_0;
|
|
try {
|
|
c14804_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c14804_0;
|
|
};
|
|
env3233[3] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
LongPressGesture = function LongPressGesture() {
|
|
_classCallCheck(this, LongPressGesture);
|
|
const r8 = _getPrototypeOf(LongPressGesture);
|
|
const r20 = _possibleConstructorReturn(this, (0, env3233[3])() ? Reflect.construct(r8, [], _getPrototypeOf(this).constructor) : r8.apply(this, void 0));
|
|
r20.config = {};
|
|
r20.handlerName = "LongPressGestureHandler";
|
|
r20.shouldCancelWhenOutside(true);
|
|
return r20;
|
|
};
|
|
_inherits(LongPressGesture, BaseGesture);
|
|
exports.LongPressGesture = _createClass(LongPressGesture, [{
|
|
key: "minDuration",
|
|
value: function minDuration(a0) {
|
|
this.config.minDurationMs = a0;
|
|
return this;
|
|
}
|
|
}, {
|
|
key: "maxDistance",
|
|
value: function maxDistance(a0) {
|
|
this.config.maxDist = a0;
|
|
return this;
|
|
}
|
|
}, {
|
|
key: "numberOfPointers",
|
|
value: function numberOfPointers(a0) {
|
|
this.config.numberOfPointers = a0;
|
|
return this;
|
|
}
|
|
}]);
|