fix for draggable stage

This commit is contained in:
Anton Lavrenov
2018-08-09 12:24:50 +07:00
parent a15b27bcf1
commit 52cdd66dfe

View File

@@ -302,12 +302,16 @@
height: BASE_BOX_HEIGHT, height: BASE_BOX_HEIGHT,
offsetX: BASE_BOX_WIDTH / 2, offsetX: BASE_BOX_WIDTH / 2,
offsetY: BASE_BOX_HEIGHT / 2, offsetY: BASE_BOX_HEIGHT / 2,
dragDistance: 0 dragDistance: 0,
draggable: true
}); });
var self = this; var self = this;
anchor.on('mousedown touchstart', function(e) { anchor.on('mousedown touchstart', function(e) {
self._handleMouseDown(e); self._handleMouseDown(e);
}); });
anchor.on('dragstart', function(e) {
e.cancelBubble = true;
});
// add hover styling // add hover styling
anchor.on('mouseenter', function() { anchor.on('mouseenter', function() {