ActiViz and WPF Slider

When I drag the slider to render, the value of the slider will jump to the maximum or minimum value and then come back. Annotate render, and the slider will be normal.

private void slider_ValueChanged(object sender,RoutePropertyChangedEventArgs<double> e)
{
     double offset=Math.Abs(e.OldValue-e.NewValue);
    if(e.OldValue>e.NewValue)
    {
         BackValueChangeEvent?.Invoke(offset);
     }
     else
     {
          ForwardValueChangedEvent?.Invoke(offset);
      }
}

private void SliderWindow_BackValueChangedEvent(double offset)
{
     if(isClockwise)
      {
          _renderPackageVR.Camera.Azimuth(offset);
      }
      else
      {
          _renderPackageVR.Camera.Azimuth(-offset);
       }
       _renderPackageVR.RenderWindow.Render();
}

@LucasGandel