in Tools/Cam360/MainPage.xaml.cs [350:363]
private void PreviewElement_ManipulationDelta(object sender, ManipulationDeltaRoutedEventArgs e)
{
double horizontalMovementFactor = (PreviewElement.FlowDirection == FlowDirection.LeftToRight ? -1 : 1) * (e.Delta.Translation.X * _panSpeed);
double verticalMovementFactor = e.Delta.Translation.Y * _panSpeed;
double rotation = e.Delta.Rotation * -1;
if (_mediaPlayerProjection.IsEnabled)
{
_mediaPlayerProjection.ViewOrientation *= CreateFromHeadingPitchRoll(horizontalMovementFactor, verticalMovementFactor, rotation);
}
if (_sphericalProjectionEffect != null)
{
_sphericalProjectionEffect.SphericalProjection.ViewOrientation *= CreateFromHeadingPitchRoll(horizontalMovementFactor, verticalMovementFactor, rotation);
}
}