mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
event fixes
This commit is contained in:
11
src/Stage.js
11
src/Stage.js
@@ -486,6 +486,11 @@
|
||||
this.targetShape._fireAndBubble(MOUSELEAVE, { evt: evt });
|
||||
this.targetShape = null;
|
||||
}
|
||||
this._fire(MOUSEMOVE, {
|
||||
evt: evt,
|
||||
target: this,
|
||||
currentTarget: this
|
||||
});
|
||||
}
|
||||
|
||||
// content event
|
||||
@@ -702,6 +707,12 @@
|
||||
if (shape.isListening() && shape.preventDefault() && evt.cancelable) {
|
||||
evt.preventDefault();
|
||||
}
|
||||
} else {
|
||||
this._fire(TOUCHMOVE, {
|
||||
evt: evt,
|
||||
target: this,
|
||||
currentTarget: this
|
||||
});
|
||||
}
|
||||
this._fire(CONTENT_TOUCHMOVE, { evt: evt });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user