使用 AddManipulator 时,触摸是否路由到新的 Manipulation?当我执行以下操作时,一切正常,但在 TouchLeave 事件之后留下了触摸。因此,例如,如果我进行单指旋转,离开触摸的元素并再次触摸它,它就变成了两指缩放。
private void HV3DTouchDown(object sender, TouchEventArgs e)
{
Canvas canvas = sender as Canvas
Manipulation.AddManipulator(canvas, e.TouchDevice.AsManipulator());
e.Handled = true;
CaptureTouch(e.TouchDevice);
}
private void HV3DTouchLeave(object sender, TouchEventArgs e)
{
Canvas canvas = sender as Canvas
Manipulation.RemoveManipulator(canvas, e.TouchDevice.AsManipulator());
e.Handled = true;
ReleaseTouchCapture(e.TouchDevice);
}