iOS 8 fixes for toc scroll imprecision.

Works consistently across iOS 6, 7 and 8.

Change-Id: Ia90f16b9c6d6a680affdf56828d99dd271915054