UNPKG

@egjs/axes

Version:

A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.

20 lines 696 B
var InterruptManager = (function () { function InterruptManager(_options) { this._options = _options; this._prevented = false; } InterruptManager.prototype.isInterrupting = function () { return this._options.interruptable || this._prevented; }; InterruptManager.prototype.isInterrupted = function () { return !this._options.interruptable && this._prevented; }; InterruptManager.prototype.setInterrupt = function (prevented) { if (!this._options.interruptable) { this._prevented = prevented; } }; return InterruptManager; }()); export { InterruptManager }; //# sourceMappingURL=InterruptManager.js.map