@@ -913,7 +913,7 @@ function _hover(gd, evt, subplot, noHoverEvent, eventTarget) {
913
913
914
914
if ( ! helpers . isUnifiedHover ( hovermode ) ) {
915
915
hoverAvoidOverlaps ( hoverLabels , rotateLabels , fullLayout , hoverText . commonLabelBoundingBox ) ;
916
- alignHoverText ( hoverLabels , rotateLabels , fullLayout . _invScaleX , fullLayout . _invScaleY , fullLayout . hoverlabel . showarrow ) ;
916
+ alignHoverText ( hoverLabels , rotateLabels , fullLayout . _invScaleX , fullLayout . _invScaleY ) ;
917
917
} // TODO: tagName hack is needed to appease geo.js's hack of using eventTarget=true
918
918
// we should improve the "fx" API so other plots can use it without these hack.
919
919
if ( eventTarget && eventTarget . tagName ) {
@@ -1903,7 +1903,7 @@ function getTextShiftX(hoverLabel) {
1903
1903
} ;
1904
1904
}
1905
1905
1906
- function alignHoverText ( hoverLabels , rotateLabels , scaleX , scaleY , showArrow ) {
1906
+ function alignHoverText ( hoverLabels , rotateLabels , scaleX , scaleY ) {
1907
1907
var pX = function ( x ) { return x * scaleX ; } ;
1908
1908
var pY = function ( y ) { return y * scaleY ; } ;
1909
1909
@@ -1922,6 +1922,7 @@ function alignHoverText(hoverLabels, rotateLabels, scaleX, scaleY, showArrow) {
1922
1922
var offsetY = offsets . y ;
1923
1923
1924
1924
var isMiddle = anchor === 'middle' ;
1925
+ var showArrow = d . trace . hoverlabel . showarrow ;
1925
1926
1926
1927
var pathStr ;
1927
1928
if ( isMiddle ) {
0 commit comments