Mousewheel zoom broken and resolution constraints not respected in Firefox

I was unable to figure out what is wrong, but this issue can be easily reproduced. It only happens in Firefox:

  1. Open http://ol3js.org/en/master/examples/simple.html
  1. Try to mousweheel-zoom in. Only works for me after several attempts, and only after mousewheel-zooming out.
  1. Open the console and check `map.getView().getView2D().getZoom()`. You are very likely to get `undefined`, which means we have an unconstrained resolution.

Any ideas?