mirror of
https://github.com/konvajs/konva.git
synced 2025-04-05 20:48:28 +08:00
Merge pull request #581 from mihhail-lapushkin/master
Resolved compatibility issues with CocoonJS
This commit is contained in:
commit
2c7ea40f7e
@ -238,7 +238,7 @@
|
||||
|
||||
Kinetic.Node.prototype.isDraggable = Kinetic.Node.prototype.getDraggable;
|
||||
|
||||
var html = document.getElementsByTagName('html')[0];
|
||||
var html = document.documentElement;
|
||||
html.addEventListener('mouseup', Kinetic.DD._endDragBefore, true);
|
||||
html.addEventListener('touchend', Kinetic.DD._endDragBefore, true);
|
||||
|
||||
|
@ -598,7 +598,7 @@
|
||||
};
|
||||
},
|
||||
_getContentPosition: function() {
|
||||
var rect = this.content.getBoundingClientRect();
|
||||
var rect = this.content.getBoundingClientRect ? this.content.getBoundingClientRect() : { top: 0, left: 0 };
|
||||
return {
|
||||
top: rect.top,
|
||||
left: rect.left
|
||||
|
Loading…
Reference in New Issue
Block a user