@@ -194,8 +194,8 @@ exports.loneHover = function loneHover(hoverItems, opts) {
194194 d . offset -= anchor ;
195195 } ) ;
196196
197- var scaleX = opts . gd . _fullLayout . _inverseScaleX ;
198- var scaleY = opts . gd . _fullLayout . _inverseScaleY ;
197+ var scaleX = opts . gd . _fullLayout . _invScaleX ;
198+ var scaleY = opts . gd . _fullLayout . _invScaleY ;
199199 alignHoverText ( hoverLabel , fullOpts . rotateLabels , scaleX , scaleY ) ;
200200
201201 return multiHover ? hoverLabel : hoverLabel . node ( ) ;
@@ -341,7 +341,7 @@ function _hover(gd, evt, subplot, noHoverEvent) {
341341 ypx = evt . clientY - dbb . top ;
342342
343343 fullLayout . _calcInverseTransform ( gd ) ;
344- var transformedCoords = Lib . apply3DTransform ( fullLayout . _inverseTransform ) ( xpx , ypx ) ;
344+ var transformedCoords = Lib . apply3DTransform ( fullLayout . _invTransform ) ( xpx , ypx ) ;
345345
346346 xpx = transformedCoords [ 0 ] ;
347347 ypx = transformedCoords [ 1 ] ;
@@ -726,7 +726,7 @@ function _hover(gd, evt, subplot, noHoverEvent) {
726726
727727 if ( ! helpers . isUnifiedHover ( hovermode ) ) {
728728 hoverAvoidOverlaps ( hoverLabels , rotateLabels ? 'xa' : 'ya' , fullLayout ) ;
729- alignHoverText ( hoverLabels , rotateLabels , fullLayout . _inverseScaleX , fullLayout . _inverseScaleY ) ;
729+ alignHoverText ( hoverLabels , rotateLabels , fullLayout . _invScaleX , fullLayout . _invScaleY ) ;
730730 } // TODO: tagName hack is needed to appease geo.js's hack of using evt.target=true
731731 // we should improve the "fx" API so other plots can use it without these hack.
732732 if ( evt . target && evt . target . tagName ) {
0 commit comments