Triggering mouse/touch events in Matter.js -
how 1 go adding programmatically triggered touch/mouse events in matter.js? have few collision events set engine, can not trigger mouseup event stops current dragging action. i've tried various combinations of targeting canvas element, mouse/mouseconstraint, , non-static body.
it turns out had incorrectly configured matter.mouse module, , re-assigning mouse input had been set in mouseconstraint. following works in regards original question:
matter.mouseconstraint.mouse.mouseup(event);
Comments
Post a Comment