Slightly more graceful check for createSVGPoint.
Less brittle, anyway.
This commit is contained in:
Родитель
12ac60d273
Коммит
064822630e
|
@ -2398,7 +2398,7 @@ var d3_mouse_bug44083 = /WebKit/.test(navigator.userAgent) ? -1 : 0;
|
||||||
|
|
||||||
function d3_mousePoint(container, e) {
|
function d3_mousePoint(container, e) {
|
||||||
var svg = container.ownerSVGElement || container;
|
var svg = container.ownerSVGElement || container;
|
||||||
if (svg instanceof SVGSVGElement) {
|
if (svg.createSVGPoint) {
|
||||||
var point = svg.createSVGPoint();
|
var point = svg.createSVGPoint();
|
||||||
if ((d3_mouse_bug44083 < 0) && (window.scrollX || window.scrollY)) {
|
if ((d3_mouse_bug44083 < 0) && (window.scrollX || window.scrollY)) {
|
||||||
svg = d3.select(document.body)
|
svg = d3.select(document.body)
|
||||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -7,7 +7,7 @@ var d3_mouse_bug44083 = /WebKit/.test(navigator.userAgent) ? -1 : 0;
|
||||||
|
|
||||||
function d3_mousePoint(container, e) {
|
function d3_mousePoint(container, e) {
|
||||||
var svg = container.ownerSVGElement || container;
|
var svg = container.ownerSVGElement || container;
|
||||||
if (svg instanceof SVGSVGElement) {
|
if (svg.createSVGPoint) {
|
||||||
var point = svg.createSVGPoint();
|
var point = svg.createSVGPoint();
|
||||||
if ((d3_mouse_bug44083 < 0) && (window.scrollX || window.scrollY)) {
|
if ((d3_mouse_bug44083 < 0) && (window.scrollX || window.scrollY)) {
|
||||||
svg = d3.select(document.body)
|
svg = d3.select(document.body)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче