For some reason drag is not working properly when mouse is locked to viewport, shift + f1 solves it in editor