Canvas needs position:relative for e.layerX to work in firefox.