UNPKG

804 BJavaScriptView Raw
1var InterruptManager = /** @class */ (function () {
2 function InterruptManager(options) {
3 this.options = options;
4 this._prevented = false; // check whether the animation event was prevented
5 }
6 InterruptManager.prototype.isInterrupting = function () {
7 // when interruptable is 'true', return value is always 'true'.
8 return this.options.interruptable || this._prevented;
9 };
10 InterruptManager.prototype.isInterrupted = function () {
11 return !this.options.interruptable && this._prevented;
12 };
13 InterruptManager.prototype.setInterrupt = function (prevented) {
14 !this.options.interruptable && (this._prevented = prevented);
15 };
16 return InterruptManager;
17}());
18export { InterruptManager };
19//# sourceMappingURL=InterruptManager.js.map
\No newline at end of file