This commit is contained in:
CPPAlien 2019-12-02 12:09:51 +08:00
parent 606256c6d2
commit 049926cac5

View File

@ -301,12 +301,16 @@ Component({
if (isMoving && doView.type === 'text') { if (isMoving && doView.type === 'text') {
pen.paint((callbackInfo) => { pen.paint((callbackInfo) => {
callback && callback(callbackInfo); callback && callback(callbackInfo);
this.triggerEvent('viewUpdate', this.touchedView); this.triggerEvent('viewUpdate', {
view: this.touchedView
});
}, true, this.movingCache); }, true, this.movingCache);
} else { } else {
pen.paint((callbackInfo) => { pen.paint((callbackInfo) => {
callback && callback(callbackInfo); callback && callback(callbackInfo);
this.triggerEvent('viewUpdate', this.touchedView); this.triggerEvent('viewUpdate', {
view: this.touchedView
});
}) })
} }
const { const {