Skip to content

bpo-33664: Scroll IDLE editor text by lines #7351

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

Merged
merged 4 commits into from
Jun 4, 2018

Conversation

csabella
Copy link
Contributor

@csabella csabella commented Jun 3, 2018

Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.

https://bugs.python.org/issue33664

@terryjreedy terryjreedy changed the title bpo-33664: IDLE: Scroll editor text by lines and not pixels bpo-33664: Scroll IDLE editor text by lines Jun 3, 2018
Copy link
Member

@terryjreedy terryjreedy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope you are as delighted with result as I am ;-).
I will merge when the retest passes.

@csabella
Copy link
Contributor Author

csabella commented Jun 3, 2018

Yes, I did the wheel first and was really happy with the way it worked. As I think you said in one of the messages, it was mildly annoying; but now with the fix, I think it may have been more than mild. :-)

@terryjreedy
Copy link
Member

I agree. The part-line annoyance, though mild per movement, is repeated over and over.

This page, with multiple fonts, symbols, and widgets, appears to always move by pixels, even for click on the scrollbar buttons and trough. Notepad++, with 1 font, moves by lines, like after this patch.

@terryjreedy
Copy link
Member

AppVeyor is down, so merging will have to wait. Too bad.

@terryjreedy terryjreedy added type-bug An unexpected behavior, bug, or error needs backport to 3.6 labels Jun 4, 2018
@terryjreedy terryjreedy merged commit d49dbd9 into python:master Jun 4, 2018
@miss-islington
Copy link
Contributor

Thanks @csabella for the PR, and @terryjreedy for merging it 🌮🎉.. I'm working now to backport this PR to: 3.6, 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 4, 2018
Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@bedevere-bot
Copy link

GH-7397 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 4, 2018
Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@bedevere-bot
Copy link

GH-7398 is a backport of this pull request to the 3.6 branch.

miss-islington added a commit that referenced this pull request Jun 4, 2018
Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
miss-islington added a commit that referenced this pull request Jun 4, 2018
Previously, the mouse wheel and scrollbar slider moved text by a fixed
number of pixels, resulting in partial lines at the top of the editor
box. The change also applies to the shell and grep output windows,
but not to read-only text views.
(cherry picked from commit d49dbd9)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
@csabella csabella deleted the bpo33664 branch June 4, 2018 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants