Skip to content

[BUG] [Android] TouchBehavior alters the background color of its attached element unexpectedly #1826

Closed

Description

@mfeingol

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

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

- .NET MAUI CommunityToolkit: 8.0.1
- OS: Android
- .NET MAUI: 8.0.20

Anything else?

No response

Activity

  1. ecomation-matthijs commented on Feb 11, 2025

    @ecomation-matthijs

    Also noticed this on iOS.

  2. locked and limited conversation to collaborators on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/behaviorsIssue/Discussion/PR that has to do with BehaviorsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions