Fix zoom and pan

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>