Remove preventScroll from crossword cell focus
preventScroll was blocking the viewport from scrolling to the grid cell when a clue was clicked from the sidebar. The clue list overflow fix is sufficient to contain scrollIntoView without needing preventScroll. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
d88d5d22c7
commit
747cc76be6
1 file changed
+1
-1
+1
-1
@@ -1117,7 +1117,7 @@ async function openCrossword(itemId) {
|
|||||||
const key = `${r},${c}`;
|
const key = `${r},${c}`;
|
||||||
if (!cells[key]) return;
|
if (!cells[key]) return;
|
||||||
selectCell(key);
|
selectCell(key);
|
||||||
cells[key].input.focus({ preventScroll: true });
|
cells[key].input.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wire up cells
|
// Wire up cells
|
||||||
|
|||||||
Reference in new issue
Block a user