question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ToggleSwitch knob resetting position a while after knob dragging is over (11.0.0-preview1)

See original GitHub issue

Describe the bug avaloniaUI allows you dragging knob of ToggleSwitch than click it since commit: 75c10992a9. It has worked properly before 11.0.0-preview1. There was a problem I observed is the knob always resetting to zero value when you complete the flow of dragging knob in any state. After some frames it corrects position instead of transitioning movement.

To Reproduce This can be done on any themes with ToggleSwitch knob dragging feature supported. Here I provide how I reproduced this glitch in official Avalonia Control Gallery Steps to reproduce the behavior:

  1. Go to ‘ToggleSwitch’
  2. Drag the knob of any ToggleSwitch control.
  3. Drag to the on state
  4. Knob resetting position in a few frames and corrected position after that. The issue I described above.

Expected behavior Knob should moves fine, no position resetting. Here I have Control Gallery built on avalonia 0.10.14 and recorded gif animation: 1

Screenshots Here I recorded gif animations. Those gifs can explain this issue easily. In Avalonia Control Gallery: 1

In Material.Avalonia Demo: 2

Desktop (please complete the following information):

  • OS: Windows OS 21H2
  • Version 11.0.0-preview1

Additional context I think something with transition system wrong or might this line but I dont sure. I cant build avalonia library from my device even I reinstalled my visual studio 2022 and installed dotnet sdks.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
maxkatz6commented, Sep 14, 2022

Can you check if it was fixed after this PR? https://github.com/AvaloniaUI/Avalonia/pull/8918

0reactions
maxkatz6commented, Oct 31, 2022

Seems to be fixed by https://github.com/AvaloniaUI/Avalonia/pull/8793/files Please let me know if not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blackmagic URSA Mini Instruction manual - manualzz.com
View online or download PDF (66 MB) Blackmagic URSA Mini Instruction manual • URSA Mini PDF manual download and more Blackmagic online manuals....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found