I'm trying to understand how to pause and resume interaction in paper.js.
I have the metaball example on a page with an input element on top, and because paper.js steals focus for driving the metaball generation onMouseMove
... bad things happen. Like not able to select what you typed.
I understood I could use item.locked = true;
, but I don't know what to apply it to because nothing works.
What is the parent Item for paper.js and can I lock it so that everything stops responding to the mouse?
I also couldn't reattach
the mousemove
event from the Tool, which is why I came to look into item.locked
. What's the correct way to remove and reattach mouse events?