Add pointer event support to modal dialog