Changed distance for horizontal and vertical button switching.