Remove auto-scroll on Gantt bar hover

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-03-14 11:07:02 +00:00
parent bca0cd2727
commit 57054bb1bd

View file

@ -236,11 +236,6 @@ tr.conf-hl > td {
function setHighlight(key, on) {
(map.get(key) || []).forEach(el => el.classList.toggle('conf-hl', on));
// When hovering a Gantt bar, scroll the matching table row into view
if (on) {
const row = (map.get(key) || []).find(el => el.tagName === 'TR');
if (row) row.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
}
}
map.forEach((els, key) => {