mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
fix for draggable stage
This commit is contained in:
parent
a15b27bcf1
commit
52cdd66dfe
@ -302,12 +302,16 @@
|
||||
height: BASE_BOX_HEIGHT,
|
||||
offsetX: BASE_BOX_WIDTH / 2,
|
||||
offsetY: BASE_BOX_HEIGHT / 2,
|
||||
dragDistance: 0
|
||||
dragDistance: 0,
|
||||
draggable: true
|
||||
});
|
||||
var self = this;
|
||||
anchor.on('mousedown touchstart', function(e) {
|
||||
self._handleMouseDown(e);
|
||||
});
|
||||
anchor.on('dragstart', function(e) {
|
||||
e.cancelBubble = true;
|
||||
});
|
||||
|
||||
// add hover styling
|
||||
anchor.on('mouseenter', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user