Jump to content

Buggy/unintuitive behavior when pressing non-character keys while typing text


Recommended Posts

When using the text tool, pressing any key while the text cursor is offscreen causes the view to jump back to being centered on the text cursor, even if the key that's pressed doesn't actually type a character. This is particularly problematic when trying to zoom or horizontally scroll since these require holding Ctrl and Shift respectively, so the view will repeatedly snap back to the text if you try to scroll anywhere else.

 

Additionally, if the text cursor goes near or off the edge of the canvas, this will happen even if the cursor is still onscreen, causing the view to repeatedly jump when attempting to zoom/scroll at all. It also doesn't always center on the cursor, sometimes it will snap to the center of the canvas or other unexpected locations.

 

Given the unintuitive and inconsistent behavior of this, I'm inclined to think it's a bug/oversight.

 

Videos of the issue:

- Case 1 (view snaps to cursor when it's offscreen even if no text is typed)

- Case 2 (cursor near edge of canvas, view snaps to cursor even when it's onscreen)

- Case 3 (cursor near edge of canvas, view snaps to center of canvas)

Link to comment
Share on other sites

Alright, I'll look into it -- might be able to squeeze it in for 5.0.2, but depending on the complexity of the fix it might have to wait. Thanks for reporting it!

  • Like 1

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

  • 3 weeks later...

Okay I've landed some fixes for 5.0.3 that should help.

 

First, it won't recenter if only Ctrl, Shift, or Alt are pressed.

 

Second, the recentering was based on the visible image bounds -- this has been corrected to be based on the visible viewport bounds. So it used to be that if the cursor was outside of the image the recentering would happen (even if the cursor was still visible on-screen, i.o.w. inside the viewport), but now it's only if the cursor goes outside if the viewport.

 

Let me know if you see any other bad behavior once 5.0.3 is released (probably by or around mid-March).

  • Like 1

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...