From 403ed3caa65de4de27445b6428696f3d8e5e2afe Mon Sep 17 00:00:00 2001 From: Kirill Taran Date: Sun, 15 Dec 2024 18:40:53 +0900 Subject: [PATCH 1/2] Ignore hover events during crop --- .../arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt b/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt index 8675231..b2d6c96 100644 --- a/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt +++ b/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt @@ -95,6 +95,9 @@ fun DrawCanvas(modifier: Modifier, viewModel: EditViewModel, observeInvalidator: MotionEvent.ACTION_CANCEL, MotionEvent.ACTION_UP -> { editManager.cropWindow.resetDelta() } + else -> { + // otherwise, crop borders "float" when bluetooth pen is used + } } } @@ -200,4 +203,4 @@ fun DrawCanvas(modifier: Modifier, viewModel: EditViewModel, observeInvalidator: } } } -} \ No newline at end of file +} From f6b24c9b3fd9f9ffab1489fdccfd7a39279ea4d1 Mon Sep 17 00:00:00 2001 From: Kirill Taran Date: Sun, 15 Dec 2024 18:56:12 +0900 Subject: [PATCH 2/2] --amend --- .../arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt b/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt index b2d6c96..047f168 100644 --- a/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt +++ b/app/src/main/java/dev/arkbuilders/arkretouch/presentation/canvas/DrawCanvas.kt @@ -203,4 +203,4 @@ fun DrawCanvas(modifier: Modifier, viewModel: EditViewModel, observeInvalidator: } } } -} +} \ No newline at end of file