confine wheel up/down with #IF