Commit 8d56700
committed
Fix smart scroll logic - use one-liner setTrackOutput(isAtEndOfOutput())
Implement smart scrolling behavior that only auto-scrolls when user
is already at the bottom of the terminal. This allows users to scroll
up and view history without being forced back to the bottom when
new output arrives.
Changes:
- Replace broken logic that didn't call setTrackOutput(false) when scrolled up
- Use setTrackOutput(isAtEndOfOutput()) to properly auto-scroll when at bottom
- Removed 6 excessive qCDebug logs
- Updated comment style in qtermwidget.h to match project format (dzw1995 2026-04-03)
Fixes: Users can now scroll up to view history while output is ongoing1 parent 28829b6 commit 8d56700
2 files changed
Lines changed: 5 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
| 283 | + | |
284 | 284 | | |
285 | 285 | | |
286 | | - | |
| 286 | + | |
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | 283 | | |
291 | 284 | | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
298 | 288 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | 289 | | |
304 | 290 | | |
305 | 291 | | |
| |||
0 commit comments