Weird pan behavior when using touch and no pinch zoom

Hi,

I am having two issues:
1. I am manipulation some info when the pan of the graph is changed using the PanChanged event. If I scrool using the scroll bar everything is fine. If I scroll by dragging the chart area I get 3 PanChanged events. The first one the NewZoomPosition = 0, then it is the "true" zoom position, then it is 0 again. Is this a bug?
2. I have EnablePinchZoom=True, but when I try to pinch zoom, nothing happens.

Attachment: chart_a647962.zip

1 Reply

MK Muneesh Kumar G Syncfusion Team March 1, 2018 01:07 PM UTC

Hi Sean Schellinger, 
Query 1 : I am manipulation some info when the pan of the graph is changed using the PanChanged event. If I scrool using the scroll bar everything is fine. If I scroll by dragging the chart area I get 3 PanChanged events. The first one the NewZoomPosition = 0, then it is the "true" zoom position, then it is 0 again. Is this a bug? 
We would like to inform you that the PanChanged event is triggered for each axis in chart. If your sample has three axis, the PanChanged event will be triggered for each axis with its zoom position. 
Query 2 :  I have EnablePinchZoom=True, but when I try to pinch zoom, nothing happens. 
In WPF we need to set IsManipulationEnabled property as true in System.Windows.UIElement to enable manipulation events. 
Code snippet [XAML]: 
 
<chart:SfChart  IsManipulationEnabled="True" 
                       x:Name="chart"  > 
            <chart:SfChart.Behaviors> 
                <chart:ChartZoomPanBehavior EnablePinchZooming="True"/> 
            </chart:SfChart.Behaviors> 
            <chart:StackingBarSeries XBindingPath="Date" YBindingPath="Y1" 
                                     ItemsSource="{Binding Data}"/> 
 
 
        </chart:SfChart> 
 
Please let us know if you have any queries. 
Regards, 
Muneesh Kumar G. 


Loader.
Up arrow icon