fix spiner and input cursor middle bug