Open-source platform for building cross-platform native Mobile, Web, Desktop and Embedded apps quickly. Create rich, C#/XAML, single-codebase apps from any IDE. Hot Reload included! 90m+ NuGet Downloads!!
On WebAssembly, when there is selection underneath or around a control that typically uses drag gesture (eg: ScrollBar or Slider), the drag gesture will only work for the 1st frame/tick/delta, subsequent pointer capture events are lost, and there is an undesired browser dragging preview following the cursor:
Expected behavior
^ probably shouldn't happen?
at least, there should be an easy way to disable this behavior, whether this would be disabled by default is subject of discussion
How to reproduce it (as minimally and precisely as possible)
<StackPanel Spacing="16">
<TextBlock Text="selectable text: // select from here" IsTextSelectionEnabled="True" />
<!-- some controls that typically use drag gestures -->
<Slider />
<ScrollBar Orientation="Horizontal" IndicatorMode="MouseIndicator" />
<TextBlock Text="selectable text: // to there" IsTextSelectionEnabled="True" />
</StackPanel>
Current behavior
On WebAssembly, when there is selection underneath or around a control that typically uses drag gesture (eg: ScrollBar or Slider), the drag gesture will only work for the 1st frame/tick/delta, subsequent pointer capture events are lost, and there is an undesired browser dragging preview following the cursor:
Expected behavior
^ probably shouldn't happen? at least, there should be an easy way to disable this behavior, whether this would be disabled by default is subject of discussion
How to reproduce it (as minimally and precisely as possible)
Workaround
from the javascript side, call
e.preventDefault()
in thepointerdown
event handler of any impacted controljust run this command from the dev console of the browser:
Works on UWP/WinUI
No
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
Uno.WinUI@5.5.37
Affected platforms
WebAssembly
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response