See my comments in the commit. https://github.com/twpayne/ol3/commit/e692f59f402c19c24fe8ed8af52765032da4ddf7