Slider mouse up event


I am trying to detect final change of slider value. I tested Change event and it works fine but it is not what I want because it triggers that event for every step on the slider. I would like to detect when mouse button is released because that means user is done dragging. Is it possible to do that? I tried using @onmouseup ASP .NET Core event but it doesn't trigger every time.