Got the barrel distortion right now.
Reset mouse position when dialog is shown.
Re-enable use of mouse wheel for map, construction and libRocket.