File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ function mouseoverPath(d) {
399
399
// hoverinfo is a combination of 'count' and 'probability'
400
400
401
401
// Mouse
402
- var hoverX = d3 . mouse ( this ) [ 0 ] ;
402
+ var hoverX = Lib . getPositionFromD3Event ( ) [ 0 ] ;
403
403
404
404
// Label
405
405
var gd = d . parcatsViewModel . graphDiv ;
@@ -446,7 +446,7 @@ function mouseoverPath(d) {
446
446
}
447
447
448
448
var hovertext = hovertextParts . join ( '<br>' ) ;
449
- var mouseX = d3 . mouse ( gd ) [ 0 ] ;
449
+ var mouseX = Lib . getPositionFromD3Event ( ) [ 0 ] ;
450
450
451
451
Fx . loneHover ( {
452
452
trace : trace ,
@@ -978,7 +978,7 @@ function mouseoverCategoryBand(bandViewModel) {
978
978
// hoverinfo is not skip, so we at least style the bands and emit interaction events
979
979
980
980
// Mouse
981
- var mouseY = d3 . mouse ( this ) [ 1 ] ;
981
+ var mouseY = Lib . getPositionFromD3Event ( ) [ 1 ] ;
982
982
if ( mouseY < - 1 ) {
983
983
// Hover is above above the category rectangle (probably the dimension title text)
984
984
return ;
@@ -1085,8 +1085,8 @@ function dragDimensionStart(d) {
1085
1085
. each (
1086
1086
/** @param {CategoryViewModel } catViewModel */
1087
1087
function ( catViewModel ) {
1088
- var catMouseX = d3 . mouse ( this ) [ 0 ] ;
1089
- var catMouseY = d3 . mouse ( this ) [ 1 ] ;
1088
+ var catMouseX = Lib . getPositionFromD3Event ( ) [ 0 ] ;
1089
+ var catMouseY = Lib . getPositionFromD3Event ( ) [ 1 ] ;
1090
1090
1091
1091
1092
1092
if ( - 2 <= catMouseX && catMouseX <= catViewModel . width + 2 &&
You can’t perform that action at this time.
0 commit comments