Skip to content

Commit

Permalink
setimeout done less
Browse files Browse the repository at this point in the history
  • Loading branch information
kaurjasleen240305 committed Jan 4, 2024
1 parent e02e312 commit 2e8ae42
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -1230,12 +1230,14 @@ class Activity {
this.blocks.setBlockScale(BLOCKSCALES[this.blockscale]);

const that = this;
that.resizeDebounce = false;
setTimeout(() => {
that.resizeDebounce = false;
}, 500);
}

this.setSmallerLargerStatus();
}
if(typeof(this.activity)!=undefined){
if(typeof(this.activity)!="undefined"){
this.activity.refreshCanvas();
}
document.getElementById("hideContents").click();
Expand Down Expand Up @@ -1263,7 +1265,8 @@ class Activity {
}

this.setSmallerLargerStatus();
if(typeof(this.activity)!=undefined){
if(typeof(this.activity)!="undefined"){
console.log(typeof(this.activity));
this.activity.refreshCanvas();
}
document.getElementById("hideContents").click();
Expand Down

0 comments on commit 2e8ae42

Please sign in to comment.