Try to fix the problem of the sprite spawns and hides when you release the mouse but it won't work. Instead it is following the mouse.