dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.18k stars 1.74k forks source link

SwipeView Threshold changes width and offset of the side menu (when visible) #6016

Open janseris opened 2 years ago

janseris commented 2 years ago

Description

Visual Studio Version 17.2.0 Preview 3.0

I tried SwipeView in a MAUI App from default template and added code from docs.

Two issues:

  1. Threshold value changes Swipe menu width. Threshold should should only change the trigger movement size (to open the side menu), am I right? That's what the docs say
  2. Threshold value changes the offset of the main content when the menu is open

4 screenshots: Threshold not specified Threshold 1 DIP Threshold 100 DIP Threshold 200 DIP

Expected behavior:

What I am trying to achieve - swipable left and right menu: image

Steps to Reproduce

New MAUI App Wrap the ContentPage content in MainPage.xaml into a SwipeView from docs: https://docs.microsoft.com/en-us/dotnet/maui/user-interface/controls/swipeview

image

Sample project: MauiApp1.zip

Threshold not set

Threshold not set

Threshold 1

Threshold 1

Threshold 100

Threshold 100

Threshold 200

Threshold 200

Version with bug

Release Candidate 1

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11 (API 30)

Did you find any workaround?

No response

Relevant log output

No response

XamlTest commented 2 years ago

Verified this issue with Visual Studio Enterprise 17.3.0 Preview 1.0 [32409.46.main]. Repro on Android with above Project.

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

XamlTest commented 1 year ago

Verified this on Visual Studio Enterprise 17.6.0 Preview 4.0. Repro on Android emulator (13.0-API 33) with below Project: 6016.zip

LaraSQP commented 1 year ago

Workaround?

The SwipeView is too sensitive, it opens almost immediately and interferes with scrolling, tapping, etc.

It's an old issue, it seems:

https://github.com/xamarin/Xamarin.Forms/issues/12518

Quaybe commented 5 months ago

Awesome, another very basic feature that's bugged and backlogged for what's soon to be 2 years.

bengavin commented 4 months ago

Any chance this can be revisited? Being able to set Threshold would be hugely helpful in preventing erroneous trigger/slide events and it's currently unusable on iOS.