Fix to navigation window not updating on touch devices. Plus new overidable transformCoords(x,y) function that
transforms from resolution-independent x,y coords to arbitrary coords.