0.4.9: Fixed hang bug when visible work area got full of elements and a new one was attempted to be placed
This commit is contained in:
parent
bdd630e8d5
commit
082b722eed
@ -14,6 +14,10 @@ LZ-String, Copyright 2013 pieroxy under MIT license https://github.com/pieroxy/l
|
||||
|
||||
## Changelog
|
||||
|
||||
### 0.4.9
|
||||
|
||||
* Fixed a bug where the JS engine would hang if attempting to place a new element when the visual work area is too full of elements.
|
||||
|
||||
### 0.4.8
|
||||
|
||||
* Fixed bug where disconnects where not propagating properly
|
||||
|
@ -12,7 +12,9 @@ function addElement(RestoreData = null,refClass,props) {
|
||||
let height = newElement.Height;
|
||||
|
||||
let noclearspot = true;
|
||||
while (noclearspot) {
|
||||
let findattempt = 0;
|
||||
while (noclearspot && findattempt < 100) {
|
||||
findattempt++;
|
||||
if (!logicEngine.ActiveContainer.checkOverlayBounds(x, y, width, height)) {
|
||||
noclearspot = false;
|
||||
} else {
|
||||
|
@ -2,7 +2,7 @@
|
||||
MatCat BrowserLogic Simulator
|
||||
*/
|
||||
|
||||
let Version = "0.4.8";
|
||||
let Version = "0.4.9";
|
||||
let spanVersion = document.getElementById("version");
|
||||
spanVersion.innerText = Version;
|
||||
// get the canvas and get the engine object going
|
||||
|
Loading…
Reference in New Issue
Block a user