mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Prevent multitouch from accidentally deleting stickers.
This commit is contained in:
@@ -306,7 +306,13 @@ public final class ImageEditorView extends FrameLayout {
|
||||
if (editSession != null) {
|
||||
editSession.commit();
|
||||
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;
|
||||
model.postEdit(moreThanOnePointerUsedInSession);
|
||||
|
||||
Reference in New Issue
Block a user