cc.Director.getInstance().getTouchDispatcher().addTargetedDelegate(node, priority, true) works well in browser,but not work in Jsb .
cc.registerTargetedDelegate(priority, true, node) can work (no errors) , but can’t delegate successfully
cc.Director.getInstance().getTouchDispatcher().addTargetedDelegate(node, priority, true) works well in browser,but not work in Jsb .
cc.registerTargetedDelegate(priority, true, node) can work (no errors) , but can’t delegate successfully
i’ve just upgrade to 2.2, here is the changed code see if it helps you.
old
cc.Director.getInstance().getTouchDispatcher().addTargetedDelegate(vTarget, 0, true);
new
cc.registerTargetedDelegate(0, true, vTarget);