Added event param to getHorizontalBounds

Firefox errors on getHorizontalBounds() because event is out of scope,
so I added event to the parameters.