Fixed touch-specs failure and added detection of negative percentage offsets (fix #3992)

Fixes #3992.

Unrelated change: Adds support for negative percentage offsets, which is already supported for iOS.