Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ToggleSwitch dragging #13893

Merged

Conversation

Splitwirez
Copy link
Contributor

What does the pull request do?

Fixes dragging the "knob" of a ToggleSwitch to set its state

What is the current behavior?

When the mouse button is released after dragging, the ToggleSwitch's state is set to the opposite of what it should be set to. This is a regression, which appears to have occurred sometime in 11.x

What is the updated/expected behavior with this PR?

Dragging the "knob" of a ToggleSwitch now correctly sets its state

How was the solution implemented (if it's not obvious)?

It's a two-line fix, lol

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.1.999-cibuild0042798-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@jmacato jmacato added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Dec 10, 2023
@jmacato
Copy link
Member

jmacato commented Dec 10, 2023

cc for backport to stable @maxkatz6

@jmacato jmacato added this pull request to the merge queue Dec 12, 2023
Merged via the queue into AvaloniaUI:master with commit 1a2e586 Dec 12, 2023
6 checks passed
@maxkatz6 maxkatz6 added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Jan 17, 2024
maxkatz6 pushed a commit that referenced this pull request Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants