-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextConsoleViewer Scrolling #719
base: master
Are you sure you want to change the base?
TextConsoleViewer Scrolling #719
Conversation
Test Results 558 files - 78 558 suites - 78 24m 29s ⏱️ - 15m 31s Results for commit 7782daa. ± Comparison against base commit 31e1ef4. This pull request removes 593 tests.
♻️ This comment has been updated with latest results. |
@@ -306,11 +293,13 @@ public void keyPressed(KeyEvent e) { | |||
if (isAutoScrollLockNotApplicable()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could rewrite this whole lambda like this:
if (isAuto... || e.count == 0) {
return;
}
setScrollLock(e.count > 0 || !isAtEndOfDocument());
* Checks if user preference is enabled for auto scroll lock. and if the view is | ||
* empty or the content is minimal, implying no need for scrolling. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Checks if user preference is enabled for auto scroll lock. and if the view is | |
* empty or the content is minimal, implying no need for scrolling. | |
* Checks if the auto scrolling is not applicable based on: | |
<ul> | |
<li>Whether or not the appropriate user preference is enabled</li> | |
<li>Whether or not there is enough content to even require scrolling</li> | |
</ul> |
0ed9a2f
to
7782daa
Compare
Improve logic for auto-enable/-disable of scroll lock in TextConsoleViewer #669