File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1280,17 +1280,16 @@ lib.bigFont = function(size) {
1280
1280
return Math . round ( 1.2 * size ) ;
1281
1281
} ;
1282
1282
1283
+ var firefoxVersion = lib . getFirefoxVersion ( ) ;
1284
+ // see https://bugzilla.mozilla.org/show_bug.cgi?id=1684973
1285
+ var isProblematicFirefox = firefoxVersion !== null && firefoxVersion < 86 ;
1286
+
1283
1287
/**
1284
1288
* Return the mouse position from the last event registered by D3.
1285
1289
* @returns An array with two numbers, representing the x and y coordinates of the mouse pointer
1286
1290
* at the event relative to the targeted node.
1287
1291
*/
1288
1292
lib . getPositionFromD3Event = function ( ) {
1289
- var firefoxVersion = lib . getFirefoxVersion ( ) ;
1290
-
1291
- // see https://bugzilla.mozilla.org/show_bug.cgi?id=1684973
1292
- var isProblematicFirefox = firefoxVersion && firefoxVersion < 86 ;
1293
-
1294
1293
if ( isProblematicFirefox ) {
1295
1294
// layerX and layerY are non-standard, so we only fallback to them when we have to:
1296
1295
return [
You can’t perform that action at this time.
0 commit comments