Fix to support Firefox mouse events