Stricter type checks and updated parameter names of goScrollCB.

Add ErrorCode type.

The scroll callback handles x and y offsets, not positions.