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