diff --git a/painter.js b/painter.js index f41b1bf..3b663c7 100644 --- a/painter.js +++ b/painter.js @@ -301,12 +301,16 @@ Component({ if (isMoving && doView.type === 'text') { pen.paint((callbackInfo) => { callback && callback(callbackInfo); - this.triggerEvent('viewUpdate', this.touchedView); + this.triggerEvent('viewUpdate', { + view: this.touchedView + }); }, true, this.movingCache); } else { pen.paint((callbackInfo) => { callback && callback(callbackInfo); - this.triggerEvent('viewUpdate', this.touchedView); + this.triggerEvent('viewUpdate', { + view: this.touchedView + }); }) } const { @@ -830,4 +834,4 @@ function setStringPrototype(screenK, scale) { } return res; }; -} +} \ No newline at end of file