aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs28
1 files changed, 16 insertions, 12 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
index 2156e45ca..777083b67 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Views/LayoutView.xaml.cs
@@ -52,24 +52,28 @@ namespace Tango.PPC.UI.Views
private void OnMouseOrTouchDown(object sender, MouseOrTouchEventArgs e)
{
- techPressElement.CaptureMouse();
-
- if (e.TouchDevice != null)
- {
- techPressElement.CaptureTouch(e.TouchDevice);
- }
+ //if (e.TouchDevice != null)
+ //{
+ // techPressElement.CaptureTouch(e.TouchDevice);
+ //}
+ //else
+ //{
+ // techPressElement.CaptureMouse();
+ //}
_timer.Start();
}
private void OnMouseOrTouchUp(object sender, MouseOrTouchEventArgs e)
{
- this.ReleaseMouseCapture();
-
- if (e.TouchDevice != null)
- {
- techPressElement.ReleaseTouchCapture(e.TouchDevice);
- }
+ //if (e.TouchDevice != null)
+ //{
+ // techPressElement.ReleaseTouchCapture(e.TouchDevice);
+ //}
+ //else
+ //{
+ // techPressElement.ReleaseMouseCapture();
+ //}
_timer.Stop();
}