CommunityToolkit / CommunityToolkit/Maui
[BUG] [Android] TouchBehavior alters the background color of its attached element unexpectedly
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
TouchBehavior alters the background color of its attached element unexpectedly.
### Expected Behavior
TouchBehavior should not change the background color of its attached element unless requested to do so.
Related: ideally there'd be a LongPressedBackgroundColor property on TouchBehavior.
### Steps To Reproduce
1. Run the repro project
2. Long-press the "welcome" text label/grid
3. Hit back
4. Long-press it again
5. Hit back
6. Note that the background color for the text label/grid is now stuck
### Link to public reproduction project repository
https://github.com/mfeingol/repros/tree/master/BackgroundColorStuckRepro
### Environment
```markdown
- .NET MAUI CommunityToolkit: 8.0.1
- OS: Android
- .NET MAUI: 8.0.20
```
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.