private void OnPointerMoved(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) { var p = e.GetCurrentPoint(this); mousePosition = new PointF((float)p.Position.X, (float)p.Position.Y); mouseMoveThrottler.TryRun(); }
private void OnMouseMove(object sender, System.Windows.Input.MouseEventArgs e) { var p = e.GetPosition(canvas); mousePosition = new PointF((float)p.X, (float)p.Y); mouseMoveThrottler.TryRun(); }
private void OnMouseMove(object sender, MouseEventArgs e) { var p = e.Location; mousePosition = new PointF(p.X, p.Y); mouseMoveThrottler.TryRun(); }
public void Update() { updateThrottler.LockTime = chartView.AnimationsSpeed; updateThrottler.TryRun(); }