Wasn't really sure how to word this but I'm trying to make it where when you press up or down in the summary screen for skills it will no longer skip 2. My summary screen only has the 4 moves going in one direction and skipping a move when pressing up and down instead of moving to the next/previous move isn't ideal. Currently pressing left and right will make it go up/down one, but pressing down/up will make it skip one. I modified fix_index(index) to no longer call fix_index_minus or fix_index_plus since I thought that was what caused it to skip a move, but it still seems to be doing it.
def fix_index(index)
max_index = (@data&.skills_set&.size || 1) - 1
return 0 if max_index == 0
if index < 0
return max_index
elsif index > max_index
return 0
end
return index
end