Updated _fireMouseEvent function