在本例中:撤消/重做
现在的问题是端口与开始节点分离。不应该发生这种事。
为了更好的理解,请看下面的图片。请帮我解决这个问题。提前谢谢。
发布于 2012-09-06 10:28:18
这是一个bug,将在下一个版本中修复。
发布于 2012-09-06 13:00:45
我仔细分析了这个问题,得出如下结论:
在鼠标下:
this.html.bind("mousedown touchstart", $.proxy(function(event)
{
event.preventDefault();
if(event.which == 3)//added this in the mouse down
return;
event = this._getEvent(event);
this.mouseDownX = event.clientX;
this.mouseDownY = event.clientY;
var pos = this.fromDocumentToCanvasCoordinate(event.clientX, event.clientY);
this.mouseDown = true;
this.onMouseDown(pos.x, pos.y);
}, this));
在鼠标向上:
this.html.bind("mouseup touchend", $.proxy(function(event)
{
//added extra condition for right click
if (this.mouseDown === false || event.which == 3)
return;
event = this._getEvent(event);
this.mouseDown = false;// it makes mouseDown false
this.onMouseUp();
}, this));
非常感谢你:)
https://stackoverflow.com/questions/12294496
复制相似问题