Fixed a 32-bit overflow.
Position feature-popups closer to cursor.
More rational behaviour of zoom control when resizing viewer.
Merge branch '0.11.x'