Only warn about mouse movement when the mouse is down. (#13101)

This commit is contained in:
Jacob Richman
2025-11-14 14:55:05 -08:00
committed by GitHub
parent 472e775a13
commit ab6b2293e1
5 changed files with 66 additions and 2 deletions
@@ -100,7 +100,8 @@ export function MouseProvider({
!handled &&
event.name === 'move' &&
event.col >= 0 &&
event.row >= 0
event.row >= 0 &&
event.button === 'left'
) {
// Terminal apps only receive mouse move events when the mouse is down
// so this always indicates a mouse drag that the user was expecting