【发布时间】:2014-12-21 21:17:11
【问题描述】:
我已将以下指针触摸事件添加到图像中。
private void PointerPressed(object sender, PointerRoutedEventArgs e)
{
isTouching = true;
isPlaying = false;
friction = 0.8f;
dragging = true;
swiping = false;
}
private void PointerMoved(object sender, PointerRoutedEventArgs e)
{
if (isTouching)
{
dragging = true;
}
}
private void PointerReleased(object sender, PointerRoutedEventArgs e)
{
isTouching = false;
isPlaying = true;
}
在PointerMoved 中,我想得到最后一点和当前点之间x 轴的差异。
我怎样才能得到它?
【问题讨论】:
标签: c# windows-phone-8 windows-8.1