SkiaSlider: Any way to disable parent page scrolling while interacting? #132
-
Basically title. I'm struggling trying to figure out how to disable the parent ScrollView's scrolling behavior while interacting with the slider. When the user moves their finger up or down while holding onto the slider's thumb, the entire page scrolls up and down. In iOS, I was able to achieve this by binding to the IsEnabled property of the ScrollView but apparently that doesn't work in Android. I even found this article that claims it can be done, but I get InvalidCast errors so this isn't an option for me. So, without adding a handler, is there a way to do this within SkiaSlider? |
Beta Was this translation helpful? Give feedback.
Replies: 15 comments 36 replies
-
Hi are we talking about the context of |
Beta Was this translation helpful? Give feedback.
-
While testing i see that the built-it "ignore wrong direction" behavior is not showing well for this case. |
Beta Was this translation helpful? Give feedback.
-
Latest nuget #134 should give canvas priority over scrollview with If you have small canvases with controls adding Gestures="Lock" should solve the problem. So basically we have 2 working modes: normal and lock. With normal you could pan scrollview having finger on the canvas, still passing gestures to canvas. With locked you could not pan scrollview when finger is on the canvas. I had a third mode "share" that I had implemented in xamarin, the basic idea is that drawn control was reporting back to gesture recognizer whether it has consumed gesture or not. So in case of vertical scroll it could report NOT and scrollview could then scroll vertically. I cannot implement this here at this time, because gestures are processed in async manner, canvas is not reporting back anything to native gesture recognizers. I see maybe a way of still implementing this but not in a very near future. |
Beta Was this translation helpful? Give feedback.
-
I’m using MAUI Shell, yeah. I’ll throw together an example ContentPage.
…On Mon, Nov 25, 2024 at 11:17 AM Nick Kovalsky ***@***.***> wrote:
"iOS will not navigate to a page" , - what is it precisely, Maui Shell,
or?..
Would it be possible to ask You for some repro code?
—
Reply to this email directly, view it on GitHub
<#132 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKKH2Z45EK67M7JLOBRO5M32CNESLAVCNFSM6AAAAABSKJQIQWVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMZXGQ3DAMY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I'll try to reproduce, these days, meanwhile, I know this is much to ask but if you could create a small repro would be just awesome. If not, no worries ill deal with what I have. |
Beta Was this translation helpful? Give feedback.
-
what is the .NET version and what is the iOS version? |
Beta Was this translation helpful? Give feedback.
-
Also can you delete your bin obj? Could be old version assemblies bugging with the new nuget |
Beta Was this translation helpful? Give feedback.
-
I have cloned your repo, then have run it on emulator iOS 18.1, it clicks np on the red canvas |
Beta Was this translation helpful? Give feedback.
-
also might be maui workload issue. I do not have 9 on purpose: Installed Workload Id Manifest Version Installation Sourcemaui-maccatalyst 8.0.83/8.0.100 SDK 8.0.200 |
Beta Was this translation helpful? Give feedback.
-
Just in case this is due to maui version, could use a smaller one: dotnet/maui#12998 |
Beta Was this translation helpful? Give feedback.
-
Oh so sorry to hear that. If your apps are running fine on simulators and they crash only on real devices maybe we should also check from the profiles and certificates side. |
Beta Was this translation helpful? Give feedback.
-
Okay so what is the status? Do I understand correctly that: |
Beta Was this translation helpful? Give feedback.
-
I see the main difference is our setup is VS Code, if I understand correctly: |
Beta Was this translation helpful? Give feedback.
-
Have some news. I wanted to debug a Xamarin app, so that led to making installs on Mac Sequoya:
Now regarding our case: When launching MAUI app on simulator first crash is due to bin/obj not deleted by hands. Can investigate that now |
Beta Was this translation helpful? Give feedback.
-
The silly explanation to the bug. left is the new nuget crashing on older ios workloads. right is the old nuget. |
Beta Was this translation helpful? Give feedback.
@nathenxbrewer the new drawnui stable(!) nuget should fix all issues building for lower ios versions. do not use preview pls.