-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Open
Labels
issue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Description
Check for duplicates
- I have searched for similar issues before opening a new one.
Description
With v12.0.0, Blockly seems to be firing far more Blockly.Events.SELECTED events than normal. This is leading to performance issues.
Reproduction steps
- Visit any v12 demo page, such as https://google.github.io/blockly-samples/plugins/field-grid-dropdown/test/index.html
- Using the console, add a simple event listener to log block selection events. For example:
Blockly.getMainWorkspace().addChangeListener(e=>{if(e.type===Blockly.Events.SELECTED){console.log(e);}})
- Drag a block out of the toolbox and connect it to another block.
- Inspect the console. You will see over a dozen selection events.
This does not happen with v11, such as at https://blockly-demo.appspot.com/static/tests/playground.html
Stack trace
Screenshots
Browsers
No response
Metadata
Metadata
Assignees
Labels
issue: bugDescribes why the code or behaviour is wrongDescribes why the code or behaviour is wrong
Type
Projects
Status
Todo