Frame independent camera dragging

I am trying to implement camera dragging functionality and smooth camera sliding that happens when player releases mouse button. My code works, but the problem is that I can’t figure it out how to make it frame independent. At 60fps it works great but at unlocked frame rate camera does not move at all.