Skip to content

Commit

Permalink
0.9.2
Browse files Browse the repository at this point in the history
Workaround for a Firefox 75 bug breaking the replay viewer
  • Loading branch information
desuwa committed Apr 15, 2020
1 parent 2447ef1 commit 0f48a26
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Tegaki = {
VERSION: '0.9.1',
VERSION: '0.9.2',

startTimeStamp: 0,

Expand Down
18 changes: 18 additions & 0 deletions js/replayevents.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class TegakiEventPrelude extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {}
}

Expand All @@ -48,6 +50,8 @@ class TegakiEventConclusion extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {}
}

Expand All @@ -58,6 +62,8 @@ class TegakiEventHistoryDummy extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
TegakiHistory.push(new TegakiHistoryActions.Dummy());
}
Expand Down Expand Up @@ -218,6 +224,8 @@ class TegakiEventDrawCommit extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
Tegaki.tool.commit();
TegakiUI.updateLayerPreview(Tegaki.activeLayer);
Expand All @@ -234,6 +242,8 @@ class TegakiEventUndo extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
TegakiHistory.undo();
}
Expand All @@ -246,6 +256,8 @@ class TegakiEventRedo extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
TegakiHistory.redo();
}
Expand Down Expand Up @@ -436,6 +448,8 @@ class TegakiEventAddLayer extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
Tegaki.addLayer();
}
Expand All @@ -448,6 +462,8 @@ class TegakiEventDeleteLayers extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
Tegaki.deleteSelectedLayers();
}
Expand All @@ -473,6 +489,8 @@ class TegakiEventMergeLayers extends TegakiEvent_void {
this.type = TegakiEvents[this.constructor.name][0];
}

static unpack(r) { return super.unpack(r); } // FF bug 1628719

dispatch() {
Tegaki.mergeSelectedLayers();
}
Expand Down

0 comments on commit 0f48a26

Please sign in to comment.