Reduce the sensitivity on Slide View

1 Answer 71 Views
SlideView
Lars
Top achievements
Rank 1
Lars asked on 12 Oct 2021, 06:36 AM

Hi there,

i  have a list of images inside my slides that i want to zoom and pan on.

But the swiping gesture gets recognized so fast that it fires before the zoom gesture can be performed.

Does anyone have an idea to do so or can show me a working example of image gallery with zooming and paning inside SlideView?

 

Thank you all and have a nice day.

1 Answer, 1 is accepted

Sort by
0
Accepted
Lance | Manager Technical Support
Telerik team
answered on 13 Oct 2021, 04:58 PM

Hi Lars,

This is expected when you layer controls that have conflicting gesture recognizers. Regardless of what you have inside the SlideView's content, if you have swiping enabled, the SlideView is going to take the first horizontal gesture.

You might see occasional zooming working if the user started their gesture with a vertical motion, but this will be purely based on the direction the user's finger started the gesture with.

Solution

Xamarin.Forms doesn't provide an API for sensitivity or direction acceleration preferences. The best option for you in this situation is to disable swipe gestures for the SlideView entirely by setting IsSwipingEnabled=False and make sure ShowButtons=True. Please visit the Disable Swiping documentation section for more information.

You can rely on the Previous/Next buttons for the user to switch between content views. If you want to change the size or color of the previous/next buttons, see the following documentation => SlideView | Customize the Control.

Regards,
Lance | Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
SlideView
Asked by
Lars
Top achievements
Rank 1
Answers by
Lance | Manager Technical Support
Telerik team
Share this question
or