diff --git a/frontend/src/metabase/visualizations/lib/graph/brush.js b/frontend/src/metabase/visualizations/lib/graph/brush.js index 75f6fe079ac8cba6ef60ddd3f8fff07a64b33b16..35769d91ecb7231dce7a9c24c6905618f3f16143 100644 --- a/frontend/src/metabase/visualizations/lib/graph/brush.js +++ b/frontend/src/metabase/visualizations/lib/graph/brush.js @@ -20,6 +20,11 @@ export function initBrush(parent, child, onBrushChange, onBrushEnd) { // the last updated range when brushing let range = null; + // remove deprecated createSVGPoint to fix d3.mouse firefox bug (metabase#24912) + if (SVGSVGElement.prototype.createSVGPoint) { + SVGSVGElement.prototype.createSVGPoint = undefined; + } + // start parent.brush().on("brushstart.custom", () => { // reset "range"