in Tools/Cam360/MainPage.xaml.cs [370:388]
private void PreviewElement_ManipulationStarted(object sender, ManipulationStartedRoutedEventArgs e)
{
if ((_mediaPlayerProjection != null && _mediaPlayerProjection.IsEnabled)
|| (_sphericalProjectionEffect != null && _sphericalProjectionEffect.SphericalProjection.IsEnabled))
{
_isPanning = true;
// Show UI insight on how to interact with the view
PanningGuidance.Visibility = Visibility.Visible;
if (_sphericalProjectionEffect != null)
{
_panSpeed = _sphericalProjectionEffect.SphericalProjection.HorizontalFieldOfViewInDegrees / (PreviewElement.ActualWidth);
}
else if (_mediaPlayerProjection != null)
{
_panSpeed = _mediaPlayerProjection.HorizontalFieldOfViewInDegrees / (PreviewElement.ActualWidth); // degrees per pixel pan
}
}
}