mirror of
https://github.com/konvajs/konva.git
synced 2026-03-03 16:58:33 +08:00
removed ^ from package.json file. Removed throttling support for mousemove and touchmove for now. It doesn't appear to have helped performance on Anton's device, so I don't want to leave it in if it's not making much of a difference. Anything that's async can be error prone, especially in combination with batch drawing
This commit is contained in:
@@ -347,6 +347,7 @@
|
||||
},
|
||||
_mouseover: function(evt) {
|
||||
if (!Kinetic.UA.mobile) {
|
||||
this._setPointerPosition(evt);
|
||||
this._fire(CONTENT_MOUSEOVER, evt);
|
||||
}
|
||||
},
|
||||
@@ -365,7 +366,7 @@
|
||||
this._fire(CONTENT_MOUSEOUT, evt);
|
||||
}
|
||||
},
|
||||
_mousemove: Kinetic.Util._throttle(function(evt) {
|
||||
_mousemove: function(evt) {
|
||||
if (!Kinetic.UA.mobile) {
|
||||
this._setPointerPosition(evt);
|
||||
var dd = Kinetic.DD,
|
||||
@@ -411,7 +412,7 @@
|
||||
if (evt.preventDefault) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
}, 17),
|
||||
},
|
||||
_mousedown: function(evt) {
|
||||
if (!Kinetic.UA.mobile) {
|
||||
this._setPointerPosition(evt);
|
||||
@@ -545,7 +546,7 @@
|
||||
|
||||
Kinetic.listenClickTap = false;
|
||||
},
|
||||
_touchmove: Kinetic.Util._throttle(function(evt) {
|
||||
_touchmove: function(evt) {
|
||||
this._setPointerPosition(evt);
|
||||
var dd = Kinetic.DD,
|
||||
shape = this.getIntersection(this.getPointerPosition());
|
||||
@@ -564,7 +565,7 @@
|
||||
if(dd) {
|
||||
dd._drag(evt);
|
||||
}
|
||||
}, 17),
|
||||
},
|
||||
_setPointerPosition: function(evt) {
|
||||
var contentPosition = this._getContentPosition(),
|
||||
offsetX = evt.offsetX,
|
||||
|
||||
Reference in New Issue
Block a user