╭ changed ──────────╮ │src/embed/script.js│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │291 } else if (bottom > container.scrollTop + container.clientHeight) { │ │292 container.scrollTop = bottom - container.clientHeight; │ │293 } │ │294 - // horizontal-only scrolls are rows of controls, so reveal either │ │295 - // edge. other scrolls reveal only the row's start; chasing varying │ │296 - // right edges while moving vertically would yank their view sideways. │ │297 - if (left < container.scrollLeft) { │ │298 - container.scrollLeft = left; │ │299 - } else if (container.dataset.scrollDirection === "horiz" && right > container.scrollLeft + container.clientWidth) {│ │300 - container.scrollLeft = right - container.clientWidth; │ │294 + // reveal a widget that fits the view's width. a wider one keeps the │ │295 + // horizontal position, which only arrow left/right changes. │ │296 + if (right - left <= container.clientWidth) { │ │297 + if (left < container.scrollLeft) { │ │298 + container.scrollLeft = left; │ │299 + } else if (right > container.scrollLeft + container.clientWidth) { │ │300 + container.scrollLeft = right - container.clientWidth; │ │301 + } │ │302 } │ │303 }, │ │304 }, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯