Skip to content

Commit 98f5f37

Browse files
committed
🔪 obsolete spikes <--> hovermode logic
- This is an artefact from the early days of "spikes" where they only worked with hovermode:'closest'
1 parent f84f7c3 commit 98f5f37

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/components/modebar/buttons.js

-7
Original file line numberDiff line numberDiff line change
@@ -253,13 +253,6 @@ function handleCartesian(gd, ev) {
253253
if(astr === 'hovermode' && (val === 'x' || val === 'y')) {
254254
val = fullLayout._isHoriz ? 'y' : 'x';
255255
button.setAttribute('data-val', val);
256-
} else if(astr === 'hovermode' && val === 'closest') {
257-
for(i = 0; i < axList.length; i++) {
258-
ax = axList[i];
259-
if(allSpikesEnabled === 'on' && !ax.showspikes) {
260-
allSpikesEnabled = 'off';
261-
}
262-
}
263256
}
264257

265258
aobj[astr] = val;

0 commit comments

Comments
 (0)