fixed cursor jumping around