BlocklyProp icon indicating copy to clipboard operation
BlocklyProp copied to clipboard

Convert and/or filter onchange functions in block generators

Open MatzElectronics opened this issue 7 years ago • 3 comments

A number of blocks use onchange handlers - and even the simplest projects fire those off like crazy in blockly, so that code is running near constantly.

Each onchange should either:

  • be replaced with a function that is explicitly called
  • use a conditional and only run the remainder of the handler if the event triggering it applies

This should have the effect of speeding up blockly (preventing it from lagging)

MatzElectronics avatar Aug 10 '17 23:08 MatzElectronics