mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #279 from LLK/newblock-analytics
update new_block event
This commit is contained in:
commit
fc8fdcecf6
1 changed files with 1 additions and 1 deletions
|
@ -582,7 +582,7 @@ export default class Palette {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
switch (Palette.getLandingPlace(element, e)) {
|
switch (Palette.getLandingPlace(element, e)) {
|
||||||
case 'scripts':
|
case 'scripts':
|
||||||
iOS.analyticsEvent('editor', 'new_block', element.owner.blocktype);
|
iOS.analyticsEvent('editor', 'new_block_' + element.owner.blocktype);
|
||||||
var sc = ScratchJr.getActiveScript();
|
var sc = ScratchJr.getActiveScript();
|
||||||
var dx = localx(sc, element.left);
|
var dx = localx(sc, element.left);
|
||||||
var dy = localy(sc, element.top);
|
var dy = localy(sc, element.top);
|
||||||
|
|
Loading…
Reference in a new issue