The lockpick minigame only uses two actions: tap/click to test a position, and hold to open the lock. Try short taps on the left, center, and right. If the lock moves a little, keep trying close to that spot, then hold when you find the right position. You don’t need to drag the lockpick.