Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

132
Vistas
d3 zoom NaN in Firefox

I have an app using d3 zoom that works in Chrome but not (for me) in Firefox. I've boiled the zoom issue down to the following very simple example:

https://codesandbox.io/s/d3-zoom-error-in-firefox-mzid3

import { zoom } from "d3-zoom";
import { select } from "d3";

select("svg").call(
  zoom().on("zoom", (event) => {
    console.log(`Transform: ${event.transform.toString()}`);

    select("g").attr("transform", event.transform.toString());
  })
);

Wheel zooming on the gray square works for me in Firefox in Code Sandbox's default split view, but when I open the browser preview in a new tab and try it, the console logs transform values of "translate(NaN,NaN) scale(NaN)". I'm sure I'm missing something obvious.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Turns out this was caused by an extension I had installed: https://addons.mozilla.org/en-US/firefox/addon/logitechsmoothscrolling/. Georgy's note that the demo worked for them caused me to look more closely at my particular Firefox profile. As that extension is 4 years old, and scrolling seems pretty smooth without it, I'm satisfied with removing the extension.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda