Solve the touch and mouse issue