Hello,--I am making a website using Blockly, i need to log event, which i am doing with :addChangeListener(mirrorEvent);However I sometime need to change the xml of the workspace, with :Blockly.Xml.domToWorkspace(Blockly.Xml.textToDom(xml),workspace);When i change the xml of the workspace from javascript, it get detected by the listener and i haven't found a way to differentiate event from the user(moving a block,ect) and event from javascript( using Blockly.Xml.domToWorkspace(...) ).I tried to add a removeChangeListener(mirrorEvent) right before modifying the workspace with javascript but it didn't work.Is there a way to only detect the change when the user is modifying the workspace, and not when it is modified from javascript? Thanks !
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hello,--I am making a website using Blockly, i need to log event, which i am doing with :addChangeListener(mirrorEvent);However I sometime need to change the xml of the workspace, with :Blockly.Xml.domToWorkspace(Blockly.Xml.textToDom(xml),workspace);When i change the xml of the workspace from javascript, it get detected by the listener and i haven't found a way to differentiate event from the user(moving a block,ect) and event from javascript( using Blockly.Xml.domToWorkspace(...) ).I tried to add a removeChangeListener(mirrorEvent) right before modifying the workspace with javascript but it didn't work.Is there a way to only detect the change when the user is modifying the workspace, and not when it is modified from javascript? Thanks !
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.