Repository navigation
[Android] Fix SwipeItem tap with fixed-width SwipeView content - #39314
Conversation
Co-Authored-By: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 39314Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 39314" |
|
Azure Pipelines: Successfully started running 1 pipeline(s). There may be pipelines that require an authorized user to comment /azp run to run. |
|
Hey there @@Shalini-Ashokan! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
|
/azp run maui-pr-uitests , maui-pr-devicetests |
|
Azure Pipelines: Successfully started running 2 pipeline(s). |
There was a problem hiding this comment.
🟡 Changes recommended
The new Y-coordinate behavior lacks regression coverage, and the test page contains dead setup code.
2 open findings
What changed in this PR
Fixes Android SwipeView hit-testing when fixed-width content offsets the revealed action container.
Changes:
- Includes parent action-container offsets in SwipeItem bounds.
- Adds an Appium regression test and HostApp scenario.
| File | Description |
|---|---|
MauiSwipeView.cs |
Corrects SwipeItem touch coordinates. |
Issue39166.cs (test) |
Verifies SwipeItem invocation. |
Issue39166.cs (HostApp) |
Provides the regression scenario. |
🧠 Review effort: Balanced
| var swipeItemX = swipeButton.Left / _density; | ||
| var swipeItemY = swipeButton.Top / _density; | ||
| var swipeItemX = (_actionView.GetX() + swipeButton.GetX()) / _density; | ||
| var swipeItemY = (_actionView.GetY() + swipeButton.GetY()) / _density; |
| var label = new Label | ||
| { | ||
| Text = "Swipe the image", | ||
| FontSize = 18 | ||
| }; |
This comment has been minimized.
This comment has been minimized.
|
Note 🔍
|
MauiBot
left a comment
There was a problem hiding this comment.
AI Review Summary
@Shalini-Ashokan — new AI review results are available based on commit
2b862eb.
🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix
Gate Result: ✅ PASSED
Platform: ANDROID · Base: main · Merge base: f16eb798
| Test | Without Fix (expect FAIL) | With Fix (expect PASS) |
|---|---|---|
🖥️ Issue39166 Issue39166 |
✅ FAIL — 627s | ✅ PASS — 611s |
🔴 Without fix — 🖥️ Issue39166: FAIL ✅ · 627s
Error-relevant lines (filtered from the build log):
at Microsoft.Maui.TestCases.Tests.Issues.Issue39166.Issue39166SwipeItemTapDoesWorkWithImageWidthRequest() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue39166.cs:line 25
🟢 With fix — 🖥️ Issue39166: PASS ✅ · 611s
(no coded error found; showing last 1200 chars)
ase wait...
A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.13)
[xUnit.net 00:00:00.13] Discovering: Controls.TestCases.Android.Tests
[xUnit.net 00:00:00.38] Discovered: Controls.TestCases.Android.Tests
NUnit Adapter 4.5.0.0: Test execution started
Running selected tests in /home/vsts/work/1/s/artifacts/bin/Controls.TestCases.Android.Tests/Debug/net10.0/Controls.TestCases.Android.Tests.dll
NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 10/14/2026 11:50:41 FixtureSetup for Issue39166(Android)
>>>>> 10/14/2026 11:50:44 Issue39166SwipeItemTapDoesWorkWithImageWidthRequest Start
>>>>> 10/14/2026 11:50:48 Issue39166SwipeItemTapDoesWorkWithImageWidthRequest Stop
Passed Issue39166SwipeItemTapDoesWorkWithImageWidthRequest [4 s]
NUnit Adapter 4.5.0.0: Test execution complete
Results File: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue39166.trx
Test Run Successful.
Total tests: 1
Passed: 1
Total time: 19.8191 Seconds
>>> TRX_RESULT_FILE: /home/vsts/work/1/s/CustomAgentLogsTmp/UITests/TestResults/Issue39166.trx
📁 Fix files reverted (1 files)
src/Core/src/Platform/Android/MauiSwipeView.cs
📋 Pre-Flight — Context & Validation
Pre-Flight Context
Scope: Read-only context for open PR #39314, targeting main at base 43427611 from submitted head 2b862ebe. The immutable diff contains 3 files, +103/-2. No files were changed, no commands or tests were run, and this is not an exhaustive review or recommendation.
Reported problem
#39166 reports that on Android a code-behind SwipeView using Reveal behavior fails to invoke a revealed SwipeItem when its Image content has a WidthRequest. Removing the width request reportedly restores tapping, and an equivalent XAML scenario reportedly does not reproduce the failure. Expected behavior is invocation followed by closing the SwipeView.
The issue was reported against 10.0.110 and separately reproduced on 10.0.0 and 10.0.101. No last-known-good version, public reproduction project, Android OS/API level, or affected device was supplied. The issue is classified as new rather than a known regression; existing history analysis could not establish an introducing change.
Changed files and mechanism
| File | Submitted change |
|---|---|
src/Core/src/Platform/Android/MauiSwipeView.cs |
Changes SwipeItem hit-test origins from child-relative Left/Top to _actionView.GetX/Y() + swipeButton.GetX/Y(), then converts to device-independent units. |
src/Controls/tests/TestCases.HostApp/Issues/Issue39166.cs |
Adds an Android code-behind scenario containing a 150×150 requested-size image, one left-side Delete item, and a status label updated by Invoked. |
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue39166.cs |
Adds an Appium test that opens the left items, taps Delete, and verifies Delete action invoked!. |
Relevant Android source behavior:
- Touch-up coordinates originate from
MotionEvent.GetX/Y()relative toMauiSwipeViewand are divided by display density. _actionViewis laid out at the content view’s native X/Y, while each SwipeItem child is laid out relative to_actionView.- The previous bounds used only the child’s
LeftandTop, omitting a nonzero action-container origin. - The proposed calculation composes the action-container and child coordinates before comparing them with the touch point.
- Both X and Y calculations change. The submitted test exercises left-side horizontal behavior but does not establish a vertically offset
TopItems/BottomItemscase. - The source can animate
_actionViewthroughTranslationX/Yin Drag transition mode. The new test implicitly uses defaults:SwipeItems.Modeand Android’s swipe transition mode both default to Reveal.
Platform-sensitive paths
- The production edit is Android-only. No iOS, MacCatalyst, or Windows implementation changes are submitted.
- The host scenario is annotated
PlatformAffected.Android. - The test guard excludes Windows and MacCatalyst under the repository’s
TEST_FAILS_ON_*constant scheme. It is included in the Android test project; the source also compiles in the iOS test project, although the scenario metadata identifies Android. - An analogous
ProcessTouchSwipeItemspath exists in the Android compatibility renderer and is not changed. Whether the reported application can traverse that legacy path is unknown. - Existing fixes that touched the same Android SwipeView area include #36878, concerning threshold/menu sizing and offsets, and #36499, concerning gesture arbitration with nested WebViews.
Validation requirements and available evidence
The supplied Gate result is passed: the regression test reportedly fails without the fix and passes with it. The Gate must not be rerun. No independent confirmation was performed here.
Primary validation should exercise the submitted Android test:
BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue39166"
After that primary test succeeds, every candidate must run all mandatory Android regressions:
BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue6016"BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue7580"BuildAndRunHostApp.ps1 -Platform android -TestFilter "SwipeViewFeatureTests"BuildAndRunHostApp.ps1 -Platform android -TestFilter "Issue36154"
Any regression-test failure makes that candidate a failure. The first three tests are cross-referenced to #36878; Issue36154 is associated with #36499. Their outcomes and broader CI results are unknown in this context. The PR description claims manual validation on Android, Windows, iOS, and Mac, but that claim was not independently verified.
Remaining uncertainties
- Why code-behind and XAML produce different offsets is not demonstrated by a side-by-side reproduction.
- The exact parent layout, Android version, density, device dimensions, and first affected MAUI version remain unknown.
- The test covers one left-side item with fixed width. It does not directly cover right, top, or bottom items; multiple/custom items; Drag transition mode; RTL; or fixed-height vertical offsets.
- The expected closing behavior is not asserted; the test establishes invocation only.
- Two retrieved review threads remain unresolved: one requests vertical Y-offset coverage, and one notes an unused local
Labelin the HostApp scenario. These are recorded feedback, not independently adjudicated findings. - Applicability of the unchanged compatibility renderer and any effects of composed coordinates during translated animation states remain unverified.
🔬 Code Review — Deep Analysis
Code Review — PR #39314
Independent Assessment
What this changes: The Android MauiSwipeView hit test now composes the action container's native position with each swipe button's native position before converting the result to device-independent units. The submitted HostApp scenario and Appium test exercise a revealed left-side SwipeItem whose image content has a fixed WidthRequest.
Inferred motivation: A nonzero action-container origin previously left the visible action and its tappable bounds in different coordinate spaces.
Approach assessment: The coordinate composition is mechanically consistent with the touch point and button dimensions used by TouchInsideContent. The focused Gate evidence confirms that Issue39166 fails without the production edit and passes with it.
Prior Review Reconciliation
| Prior finding | Status | Evidence |
|---|---|---|
Add TopItems/BottomItems Y-offset coverage |
Non-blocking coverage suggestion | The production edit changes both axes, but the submitted test directly covers only the reported left-side case. No concrete vertical failure was demonstrated. |
Remove unused local label |
Non-blocking cleanup suggestion | The local is unused, but it does not affect the scenario or production behavior. |
No unresolved prior error-level finding was identified across top-level reviews, inline comments, and issue comments.
Blast Radius Assessment
- Runs for all instances: The changed hit-test calculation runs for visible Android SwipeView action children when touch-up processing evaluates an open swipe action.
- Startup impact: None.
- Static/shared state: None.
- Platform scope: Android production code only; the test scenario is marked Android.
CI Status
- Gate: ✅ PASSED for
Issue39166(fails without the fix and passes with it). - Mandatory regression filters: ✅ PASSED —
Issue6016,Issue7580,SwipeViewFeatureTests, andIssue36154(4 passed, 0 failed, 0 skipped). - Required-check result: Undetermined/pending. Authenticated required-check enumeration was unavailable to the expert; anonymous status evidence did not establish a completed required-check set.
- Classification: The submitted fix's focused behavior and required regression filters are validated, but broader required CI is not demonstrated by the available evidence.
Findings
No actionable inline findings were found. inline-findings.json contains [].
Failure-Mode Probing
- Coordinate-space consistency: The touch point, composed action/button origin, and button dimensions are all compared in device-independent units.
- Reveal and translated layouts: Using each view's current
GetX()/GetY()position includes its laid-out position and translation rather than reverting to child-relativeLeft/Top; no conflicting branch was identified. - Lifecycle/null state: Existing guards for
_actionViewand swipe items remain unchanged. - RTL and vertical items: No concrete inversion or branch defect was established. Direct vertical, RTL, multiple-item, and Drag-mode coverage remains absent.
- Compatibility renderer: The analogous legacy path is unchanged, but available evidence does not show that the reported handler-based scenario traverses it.
External Output Contract
Not applicable.
Verdict: NEEDS_DISCUSSION
Confidence: low
Summary: The submitted Android fix is coherent, the focused Gate validates the reported left-side fixed-width case, and all four mandatory regression filters pass. No source-backed defect meets the evidence-first refinement threshold, so no pr-plus-reviewer candidate is authorized. Approval remains blocked because current required CI is not established.
Refinement Decision
Threshold met: No. No concrete actionable defect or unresolved behavioral mechanism backed by source/test evidence was identified, so no refinement was implemented or validated.
🛠️ Try-Fix — Analysis & Comparison
Alternative generation: not requested
Evidence-first mode intentionally omits routine Try-Fix attempts. This is not a failed
attempt, a completed alternative search, or evidence that alternatives have no value.
The expert review may still produce one evidence-backed PR refinement.
🏁 Report — Final Recommendation
⚠️ Final Recommendation: REQUEST CHANGES
Phase Status
| Phase | Status | Notes |
|---|---|---|
| Pre-Flight | ✅ COMPLETE | Trusted read-only evidence-first context consumed |
| Expert Review | NEEDS_DISCUSSION (low) | 0 errors, 0 actionable inline findings; required-check state undetermined |
| Gate | ✅ PASSED | Android Issue39166 fails without the fix and passes with it |
| Regression Tests | ✅ PASSED | 4 passed, 0 failed, 0 skipped |
| Try-Fix | NOT REQUESTED | Evidence-first mode intentionally omitted alternative generation |
| Refinement | NOT CREATED | Expert evidence did not meet the refinement threshold |
| Report | ✅ COMPLETE | Raw pr is the sole real candidate |
Code Review and Candidate Comparison
Alternative generation: not requested. This intentional evidence-first omission is not a failed or exhausted alternative search.
| Candidate | Primary Validation | Mandatory Regressions | Expert Assessment | Rank |
|---|---|---|---|---|
pr |
✅ Gate passed | ✅ 4/4 passed | No actionable source finding; required CI remains undetermined | 1 — sole real candidate |
No pr-plus-reviewer patch was authorized because the expert found no concrete actionable defect or unresolved behavioral mechanism backed by source or test evidence. No try-fix-* candidates exist.
Summary
The raw submitted PR is the winner and its reported behavior is supported by the focused Gate plus all four required regression filters. The recommendation remains REQUEST CHANGES because the single expert review returned NEEDS_DISCUSSION: authenticated required-check status was unavailable, and the available anonymous evidence did not establish a completed required-check set. This report therefore does not claim merge readiness.
Root Cause
Android touch-up coordinates are relative to MauiSwipeView, while each action button's previous hit-test origin used only child-relative Left and Top. When fixed-width content lays out the action container away from the SwipeView origin, the visible button and its tappable bounds diverge.
Fix Quality
The submitted fix composes _actionView.GetX()/GetY() with the child button's GetX()/GetY() before converting to device-independent units. That aligns the action bounds with the coordinate space used by the touch point, remains localized to Android SwipeView hit testing, and introduces no static or startup state. The focused Issue39166 Gate and the Issue6016, Issue7580, SwipeViewFeatureTests, and Issue36154 regression filters all pass. Direct vertical, RTL, multiple-item, and Drag-mode coverage is absent, but the expert found no concrete failure in those paths and did not authorize a refinement solely for broader coverage.
🔗 Regression Cross-Reference
🔍 Regression Cross-Reference
⚠ Overlaps with prior bug-fix PRs — same files modified, but no exact line revert detected.
| File | Fix PR | Fixed issue(s) |
|---|---|---|
src/Core/src/Platform/Android/MauiSwipeView.cs |
#36878 | #6016 |
src/Core/src/Platform/Android/MauiSwipeView.cs |
#36499 | #36154 |
🧪 Regression Tests to Verify
These tests were added by the overlapping fix PRs. Running them to verify no side-effect regressions:
| Fix PR | Type | Test | Filter |
|---|---|---|---|
| #36878 | UITest | Issue6016 | Issue6016 |
| #36878 | UITest | Issue7580 | Issue7580 |
| #36878 | UITest | SwipeViewFeatureTests | SwipeViewFeatureTests |
| #36499 | UITest | Issue36154 | Issue36154 |
🧪 Regression Test Results
✅ PASSED — 4 passed, 0 failed, 0 skipped
| Fix PR | Test | Type | Result |
|---|---|---|---|
| #36878 | Issue6016 | UITest | ✅ PASSED |
| #36878 | Issue7580 | UITest | ✅ PASSED |
| #36878 | SwipeViewFeatureTests | UITest | ✅ PASSED |
| #36499 | Issue36154 | UITest | ✅ PASSED |
📱 UI Tests — SwipeView,ViewBaseTests
Detected UI test categories: SwipeView,ViewBaseTests
✅ Deep UI tests — 198 passed, 0 failed, 1 skipped across 2 categories on platform-pool agent (replaces in-process counts above).
🧪 UI Test Execution Results (deep, platform pool)
| Category | Tests | Snapshot diffs |
|---|---|---|
SwipeView |
80/80 ✓ | — |
ViewBaseTests |
118/119 (1 skipped) ✓ | — |
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs) |
🧭 Next Steps — review latest findings
No alternative fix was selected for this run. Review the session findings and CI results before merging.
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Description of Change <!-- Enter description of the fix in this section --> Remove the automatic `/review started` PR comments, such as [this notice on #39314](#39314 (comment)). The shared posting step is removed for both `/review` and `/review gate`. Keep pipeline dispatch, build-ID validation and logs, the `s/agent-review-in-progress` label, command acknowledgment/minimization, failure notices, and final review/gate reports unchanged. Remove the obsolete test that required the deleted start notice; no new pipeline tests were added. Validation: - `actionlint -shellcheck= .github/workflows/review-trigger.yml` — passed (workflow validation; ShellCheck disabled). - `git diff --check` — passed. - Live review dispatch was not run: this workflow is activated from the default branch, and the removed notification cannot be exercised there until merged. ### Issues Fixed <!-- Please make sure that there is a bug logged for the issue being fixed. The bug should describe the problem and how to reproduce it. --> No separate issue. Requested cleanup of the start notification linked above; this does not change the SwipeView fix in #39314 or delete existing comments. <!-- Are you targeting main? All PRs should target the main branch unless otherwise noted. --> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 194a1b58-dd18-44eb-8fae-5665846d17e0
There was a problem hiding this comment.
Expert Review
@Shalini-Ashokan — new AI review results are available based on commit
2b862eb.
✅ Merge recommendation: YES. No actionable findings.
🔬 Review details
Coverage: 7/7 dimensions; finding validation complete.
Dimensions:
- ✅ 5. Logic and Correctness Verification
- ✅ 6. Regression Prevention and Test Coverage
- ✅ 7. Public API Surface Design
- ✅ 8. Async and Threading Safety
- ✅ 11. Memory Leak Prevention
- ✅ 16. Complexity Reduction
- ✅ 22. Android Platform Specifics
AI source/history review only; no builds or tests run. Required CI and human approval still apply.
There was a problem hiding this comment.
Expert Review — 0 findings
Reviewed commit 2b862eb.
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue Details On Android, tapping a revealed SwipeItem does not invoke its action when the SwipeView content has a WidthRequest. ### Root Cause The swipe button position was calculated only relative to its parent action container. When fixed-width content moved that container away from X = 0, the visible button and its tappable area no longer matched. ### Description of Change Include the action container’s X and Y positions when calculating the swipe button’s tappable area. This places the touch area over the visible button, allowing the SwipeItem action to be invoked correctly. Validated the behavior in the following platforms - [x] Android - [x] Windows - [x] iOS - [x] Mac ### Issues Fixed Fixes #39166 ### Output ScreenShot |Before|After| |--|--| | <video src="https://github.com/user-attachments/assets/79eea604-4665-4e04-bac7-3d63c7bbd8c7" >| <video src="https://github.com/user-attachments/assets/decc36e9-ba95-42e6-89f5-04eb6f5859bb">| --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue Details On Android, tapping a revealed SwipeItem does not invoke its action when the SwipeView content has a WidthRequest. ### Root Cause The swipe button position was calculated only relative to its parent action container. When fixed-width content moved that container away from X = 0, the visible button and its tappable area no longer matched. ### Description of Change Include the action container’s X and Y positions when calculating the swipe button’s tappable area. This places the touch area over the visible button, allowing the SwipeItem action to be invoked correctly. Validated the behavior in the following platforms - [x] Android - [x] Windows - [x] iOS - [x] Mac ### Issues Fixed Fixes #39166 ### Output ScreenShot |Before|After| |--|--| | <video src="https://github.com/user-attachments/assets/79eea604-4665-4e04-bac7-3d63c7bbd8c7" >| <video src="https://github.com/user-attachments/assets/decc36e9-ba95-42e6-89f5-04eb6f5859bb">| --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue Details On Android, tapping a revealed SwipeItem does not invoke its action when the SwipeView content has a WidthRequest. ### Root Cause The swipe button position was calculated only relative to its parent action container. When fixed-width content moved that container away from X = 0, the visible button and its tappable area no longer matched. ### Description of Change Include the action container’s X and Y positions when calculating the swipe button’s tappable area. This places the touch area over the visible button, allowing the SwipeItem action to be invoked correctly. Validated the behavior in the following platforms - [x] Android - [x] Windows - [x] iOS - [x] Mac ### Issues Fixed Fixes #39166 ### Output ScreenShot |Before|After| |--|--| | <video src="https://github.com/user-attachments/assets/79eea604-4665-4e04-bac7-3d63c7bbd8c7" >| <video src="https://github.com/user-attachments/assets/decc36e9-ba95-42e6-89f5-04eb6f5859bb">| --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue Details On Android, tapping a revealed SwipeItem does not invoke its action when the SwipeView content has a WidthRequest. ### Root Cause The swipe button position was calculated only relative to its parent action container. When fixed-width content moved that container away from X = 0, the visible button and its tappable area no longer matched. ### Description of Change Include the action container’s X and Y positions when calculating the swipe button’s tappable area. This places the touch area over the visible button, allowing the SwipeItem action to be invoked correctly. Validated the behavior in the following platforms - [x] Android - [x] Windows - [x] iOS - [x] Mac ### Issues Fixed Fixes #39166 ### Output ScreenShot |Before|After| |--|--| | <video src="https://github.com/user-attachments/assets/79eea604-4665-4e04-bac7-3d63c7bbd8c7" >| <video src="https://github.com/user-attachments/assets/decc36e9-ba95-42e6-89f5-04eb6f5859bb">| --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! <!-- !!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING MAIN. !!!!!!! --> ### Issue Details On Android, tapping a revealed SwipeItem does not invoke its action when the SwipeView content has a WidthRequest. ### Root Cause The swipe button position was calculated only relative to its parent action container. When fixed-width content moved that container away from X = 0, the visible button and its tappable area no longer matched. ### Description of Change Include the action container’s X and Y positions when calculating the swipe button’s tappable area. This places the touch area over the visible button, allowing the SwipeItem action to be invoked correctly. Validated the behavior in the following platforms - [x] Android - [x] Windows - [x] iOS - [x] Mac ### Issues Fixed Fixes #39166 ### Output ScreenShot |Before|After| |--|--| | <video src="https://github.com/user-attachments/assets/79eea604-4665-4e04-bac7-3d63c7bbd8c7" >| <video src="https://github.com/user-attachments/assets/decc36e9-ba95-42e6-89f5-04eb6f5859bb">| --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>


Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Issue Details
On Android, tapping a revealed SwipeItem does not invoke its action when the SwipeView content has a WidthRequest.
Root Cause
The swipe button position was calculated only relative to its parent action container.
When fixed-width content moved that container away from X = 0, the visible button and its tappable area no longer matched.
Description of Change
Include the action container’s X and Y positions when calculating the swipe button’s tappable area.
This places the touch area over the visible button, allowing the SwipeItem action to be invoked correctly.
Validated the behavior in the following platforms
Issues Fixed
Fixes #39166
Output ScreenShot
Issue39166-BeforeFix.mov
Issue39166-AfterFix.mov