This commit is contained in:
Лаврёнов Антон
2014-05-22 23:05:52 +08:00
parent 16631f48a3
commit 540f526c4e
2 changed files with 5 additions and 5 deletions

View File

@@ -9576,7 +9576,7 @@ var Kinetic = {};
// workaround for mobile IE to force touch event when unhandled pointer event elevates into a mouse event // workaround for mobile IE to force touch event when unhandled pointer event elevates into a mouse event
if (Kinetic.UA.ieMobile) { if (Kinetic.UA.ieMobile) {
return _touchmove(evt); return this._touchmove(evt);
} }
// workaround fake mousemove event in chrome browser https://code.google.com/p/chromium/issues/detail?id=161464 // workaround fake mousemove event in chrome browser https://code.google.com/p/chromium/issues/detail?id=161464
@@ -9635,7 +9635,7 @@ var Kinetic = {};
// workaround for mobile IE to force touch event when unhandled pointer event elevates into a mouse event // workaround for mobile IE to force touch event when unhandled pointer event elevates into a mouse event
if (Kinetic.UA.ieMobile) { if (Kinetic.UA.ieMobile) {
return _touchstart(evt); return this._touchstart(evt);
} }
if (!Kinetic.UA.mobile) { if (!Kinetic.UA.mobile) {
@@ -9663,7 +9663,7 @@ var Kinetic = {};
// workaround for mobile IE to force touch event when unhandled pointer event elevates into a mouse event // workaround for mobile IE to force touch event when unhandled pointer event elevates into a mouse event
if (Kinetic.UA.ieMobile) { if (Kinetic.UA.ieMobile) {
return _touchend(evt); return this._touchend(evt);
} }
if (!Kinetic.UA.mobile) { if (!Kinetic.UA.mobile) {
this._setPointerPosition(evt); this._setPointerPosition(evt);
@@ -10225,7 +10225,7 @@ var Kinetic = {};
_getImageData: function(x, y) { _getImageData: function(x, y) {
var width = this.hitCanvas.width || 1, var width = this.hitCanvas.width || 1,
height = this.hitCanvas.height || 1, height = this.hitCanvas.height || 1,
index = (y * width ) + x; index = (Math.round(y) * width ) + Math.round(x);
if (!this._hitImageData) { if (!this._hitImageData) {
this._hitImageData = this.hitCanvas.context.getImageData(0, 0, width, height); this._hitImageData = this.hitCanvas.context.getImageData(0, 0, width, height);

2
kinetic.min.js vendored

File diff suppressed because one or more lines are too long