是否可以从stage1拖放到stage2?stage1将包含可拖动的形状,stage2将成为目标。
是的,您可以执行以下操作:
image.on('dragmove', function() {
if ((!stage.getPointerPosition()) && image.getParent() !== layer2) {
image.stopDrag();
image.moveTo(layer2);
image.position(stage2.getPointerPosition());
image.startDrag();
layer.draw();
layer2.draw();
}
})
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句