mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-07 02:54:38 -04:00
Merge pull request #47 from tmickel/feature/stackclick
Add stack click event handler
This commit is contained in:
commit
aee9447899
3 changed files with 274 additions and 318 deletions
|
@ -55,6 +55,9 @@ function VirtualMachine () {
|
||||||
id: e.blockId
|
id: e.blockId
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'stackclick':
|
||||||
|
instance.runtime.toggleStack(e.blockId);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -76,6 +79,9 @@ function VirtualMachine () {
|
||||||
id: e.blockId
|
id: e.blockId
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case 'stackclick':
|
||||||
|
instance.runtime.toggleStack(e.blockId);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
11
vm.min.js
vendored
11
vm.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue