Prevent multitouch from accidentally deleting stickers.
This commit is contained in:
parent
9f3765d368
commit
b0d0814b88
1 changed files with 7 additions and 1 deletions
|
@ -306,7 +306,13 @@ public final class ImageEditorView extends FrameLayout {
|
||||||
if (editSession != null) {
|
if (editSession != null) {
|
||||||
editSession.commit();
|
editSession.commit();
|
||||||
dragDropRelease(false);
|
dragDropRelease(false);
|
||||||
notifyDragEnd(editSession.getSelected(), checkTrashIntersect(getPoint(event)));
|
|
||||||
|
PointF point = getPoint(event);
|
||||||
|
boolean hittingTrash = event.getPointerCount() == 1 &&
|
||||||
|
checkTrashIntersect(point) &&
|
||||||
|
model.findElementAtPoint(point, viewMatrix, new Matrix()) == editSession.getSelected();
|
||||||
|
|
||||||
|
notifyDragEnd(editSession.getSelected(), hittingTrash);
|
||||||
|
|
||||||
editSession = null;
|
editSession = null;
|
||||||
model.postEdit(moreThanOnePointerUsedInSession);
|
model.postEdit(moreThanOnePointerUsedInSession);
|
||||||
|
|
Loading…
Add table
Reference in a new issue