Added comments & assert to scrollX fix.

Added comments to fix as per @kripken's request.
Added an assert too (guarded by ASSERTIONS define)