Fix error in navigation distance calculation when scrolling the mouse wheel

Refs #2108