kopia lustrzana https://github.com/backface/turtlestitch
Optimize StringMorph::clearSelection()
This was taking a very large chunk of CPU time when copying large scripts.pull/3/merge
rodzic
94687f8e63
commit
1f52f4f152
|
@ -7402,6 +7402,7 @@ StringMorph.prototype.selectionStartSlot = function () {
|
|||
};
|
||||
|
||||
StringMorph.prototype.clearSelection = function () {
|
||||
if (!this.currentlySelecting && this.startMark === 0 && this.endMark === 0) return;
|
||||
this.currentlySelecting = false;
|
||||
this.startMark = 0;
|
||||
this.endMark = 0;
|
||||
|
|
Ładowanie…
Reference in New Issue