Exemple #1
0
        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();
        }
Exemple #2
0
        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();
        }
Exemple #3
0
        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();
 }