Skip to content

Commit

Permalink
fix explanation on delay/echo-flush stuff while dragging scrollbar (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Sep 16, 2020
1 parent 8a848b3 commit 089ed3a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/winmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -2892,11 +2892,12 @@ static struct {
child_printf("\e[%u#d", info.nTrackPos);
}
}
// flush notification to handle auto-repeat click on scrollbar,
// as messages are not dispatched to the application while
// holding the mouse button on the scrollbar;
// wait a moment first: try to flush the pipe to
// avoid incomplete delivery (#1033); 1ms is not sufficient
// while holding the mouse button on the scrollbar (e.g. dragging),
// messages are not dispatched to the application;
// so in order to make any response effective on the screen,
// we need to call the child_proc function here;
// additional delay avoids incomplete delivery of such echo (#1033),
// 1ms is not sufficient
usleep(5555);
child_proc();
}
Expand Down

0 comments on commit 089ed3a

Please sign in to comment.