Skip to content
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

Fix redraw handling (regression bug) #614

Merged

Conversation

tangledhelix
Copy link
Collaborator

In #238, binding of button-1 (left-click) created a regression that didn't fire redraws on click properly.

Fixes #613

In DistributedProofreaders#238, binding of button-1 (left-click) created a regression
that didn't fire redraws on click properly.

Fixes DistributedProofreaders#613
@tangledhelix
Copy link
Collaborator Author

Testing notes:

Click in the file to move the cursor (and do nothing else). The line & column ruler should update. If quotes/brackets mode is turned on, those highlights should also update.

Without this patch applied, clicking doesn't redraw properly. You have to move with the arrow keys or scroll or take some other action than clicking in order to trigger a redraw.

@tangledhelix
Copy link
Collaborator Author

It's probably also worth re-testing that select-dragging past the window edge still works like it should, too.

Copy link
Member

@srjfoo srjfoo left a comment

Choose a reason for hiding this comment

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

Select/drag beyond the edge of the screen (NSEW) still works for normal select. Column-select beyond the edge of the screen still doesn't scroll (which was expected -- I just wanted to confirm that I tested it).

@windymilla windymilla merged commit 1a022c2 into DistributedProofreaders:master Dec 29, 2024
1 check passed
@tangledhelix tangledhelix deleted the fix_click_redraw branch January 1, 2025 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redraws not properly handled on mouse click to move cursor
3 participants