ScrollView and SfChart trackball removal on iOS

Hello,

I have a SfChart wrapped by ScrollView. The chart has the trackball behavior enabled.

I have no problems on Android, when the trackball is active, the scroll is blocked and the trackball is created and removed correctly. However, on iOs, the scroll is not blocked and if I am not careful and I manage to scroll up/down while I am moving the trackball, the trackball is not removed when I remove my finger.

Is this a bug? I need a to wrap the SfChart with ScrollView and I need the trackball to be added and removed correctly on both platforms. Preferable, to have the scrollview blocked while trackball is active. How can I achieve this?


I am adding a sample project to attachments.


Best regards,

Ondřej


Attachment: SimpleChartTrackballAndScrollSample_95e4fb91.zip

4 Replies 1 reply marked as answer

YP Yuvaraj Palanisamy Syncfusion Team May 24, 2022 05:13 PM UTC

Hi Ondrej Slimak,


We are trying to achieve by feasible workaround solution for this and we will update you with complete details on 26th May 2022. We appreciate your patience until then.


Regards,

Yuvaraj.



YP Yuvaraj Palanisamy Syncfusion Team May 25, 2022 01:06 PM UTC

Hi Ondrej Slimak,


On further analysis, this is the behavior in Xamarin.Forms iOS. The trackball will be shown in the touch move at the same time. Scroll view scrolling also happened in iOS. Hence, we would like to suggest using ActivationMode as LongPress for ChartTrackballBehavior due to the fact that scrolling is a different action from trackball in LongPress.


Regards,

Yuvaraj.


Marked as answer

OS Ondrej Slimak May 26, 2022 10:03 AM UTC

Hello,


I can confirm the trackball with ActivationMode=LongPress behaves as desired. Thank you for 



YP Yuvaraj Palanisamy Syncfusion Team May 27, 2022 05:06 AM UTC

Hi Ondrej Slimak,


Thanks for your update.


Please let us know if you have any further assistance.


Regards,

Yuvaraj.


Loader.
Up arrow icon