Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions draftlogs/7503_fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix hover event not triggered on consecutive empty bins (count=0) with `hovermode:'x'` for histogram[[#7503](https://github.com/plotly/plotly.js/pull/7503)]
3 changes: 2 additions & 1 deletion src/components/fx/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -2283,7 +2283,8 @@ function hoverChanged(gd, evt, oldhoverdata) {

if(oldPt.curveNumber !== newPt.curveNumber ||
String(oldPt.pointNumber) !== String(newPt.pointNumber) ||
String(oldPt.pointNumbers) !== String(newPt.pointNumbers)
String(oldPt.pointNumbers) !== String(newPt.pointNumbers) ||
String(oldPt.binNumber) !== String(newPt.binNumber)
) {
return true;
}
Expand Down