涂鸦礼物bugfix
This commit is contained in:
@@ -153,10 +153,6 @@ public class DrawGiftView extends View {
|
||||
mLastX = moveX;
|
||||
mLastY = moveY;
|
||||
invalidate();
|
||||
|
||||
if (onDrawGiftListener != null) {
|
||||
onDrawGiftListener.onGiftPainted(this, currentGiftId);
|
||||
}
|
||||
} else {
|
||||
//越界
|
||||
}
|
||||
@@ -183,6 +179,9 @@ public class DrawGiftView extends View {
|
||||
mDIYGiftModel.setX(x);
|
||||
mDIYGiftModel.setY(y);
|
||||
allDrawGiftArray.add(mDIYGiftModel);
|
||||
if (onDrawGiftListener != null) {
|
||||
onDrawGiftListener.onGiftPainted(this, currentGiftId);
|
||||
}
|
||||
}
|
||||
|
||||
//检查是否是屏幕边缘
|
||||
|
Reference in New Issue
Block a user