Skip to content

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

Merged
terryjreedy merged 4 commits into
python:masterfrom
csabella:bpo33664
Jun 4, 2018
Merged

bpo-33664: Scroll IDLE editor text by lines#7351
terryjreedy merged 4 commits into
python:masterfrom
csabella:bpo33664

Conversation

@csabella

@csabella csabella commented Jun 3, 2018

Copy link
Copy Markdown
Contributor

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

@terryjreedy terryjreedy left a comment

Copy link
Copy Markdown
Member

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

csabella commented Jun 3, 2018

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown

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