feat(controller): improve scroll action

This commit is contained in:
Simon
2026-04-02 22:05:47 +08:00
parent b8fd1aaebc
commit 85a33ac1a4
3 changed files with 41 additions and 12 deletions

View File

@@ -1378,6 +1378,12 @@ export default (
return true
}
// Scrollable containers are always distinct — the LLM needs their index for targeted scrolling.
// Check extraData (already set by isScrollableElement in isInteractiveElement) to avoid redundant layout reads.
if (extraData.get(element)?.scrollable) {
return true
}
// Default to false: if it's interactive but doesn't match above,
// assume it triggers the same action as the parent.
return false