Skip to content

Commit 19eae92

Browse files
authored
fix clicking on stack makes execution run slowly (#4733)
1 parent df2d0cf commit 19eae92

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

js/block.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2846,8 +2846,7 @@ class Block {
28462846
if (!that.blocks.getLongPressStatus() && !that.blocks.stageClick) {
28472847
topBlk = that.blocks.findTopBlock(thisBlock);
28482848

2849-
that.activity.runMode = "click";
2850-
that.activity.logo.turtleDelay = that.activity.DEFAULTDELAY;
2849+
that.activity.runMode = "normal";
28512850
that.activity.logo.synth.resume();
28522851

28532852
if (that.activity.turtles.running()) {
@@ -2865,8 +2864,7 @@ class Block {
28652864
if (!that.blocks.getLongPressStatus() && !that.blocks.stageClick) {
28662865
topBlk = that.blocks.findTopBlock(thisBlock);
28672866

2868-
that.activity.runMode = "click";
2869-
that.activity.logo.turtleDelay = that.activity.DEFAULTDELAY;
2867+
that.activity.runMode = "normal";
28702868
that.activity.logo.synth.resume();
28712869

28722870
if (that.activity.turtles.running()) {

js/blocks/ExtrasBlocks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ function setupExtrasBlocks(activity) {
877877

878878
// Only run debugger statement if normal playmode (final product)
879879
// All other run methods are for debugging only and should be used as such
880-
if (mode !== "slow" && mode !== "step" && mode !== "click") {
880+
if (mode !== "slow" && mode !== "step") {
881881
return;
882882
}
883883
// Stop all turtles and pause execution

0 commit comments

Comments
 (0)