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

Typing causes cursor to flash, disappear and reappear #4942

Closed
craigo- opened this issue Jul 22, 2023 · 6 comments
Closed

Typing causes cursor to flash, disappear and reappear #4942

craigo- opened this issue Jul 22, 2023 · 6 comments

Comments

@craigo-
Copy link

craigo- commented Jul 22, 2023

In a pristinely unpacked version of Notepad3, when the mouse pointer is placed inside the Notepad3 window and you begin to type, the cursor flashes, disappears and reappears. If you stop typing, the cursor may be present or entirely absent. Moving the mouse makes an absent mouse cursor reappear.

This behaviour began in version 6.23.619.1 beta, and is present up until the most recent test build to date (6.23.718.1 rc). The behaviour does not occur in version 6.23.616.1 beta.

@zufuliu
Copy link

zufuliu commented Mar 31, 2024

Not a bug, see https://sourceforge.net/p/scintilla/bugs/2333/

@craigo-
Copy link
Author

craigo- commented Mar 31, 2024

Just to reiterate, it's not that the mouse pointer disappears. It's that the mouse pointer disappears and reappears randomly after keytrokes.

I checked the current version of Notepad3 alongside two other Scintilla-based text editors, and how they respected the "Hide pointer while typing" setting in Windows. Here is what I found.

Software & Version Hide pointer while typing: ON Hide pointer while typing: OFF
Notepad++ 8.6.5 Pointer invisible while typing Pointer always visible
SciTE 5.4.3 Pointer invisible while typing Pointer always visible
Notepad3 6.24.312.1 rc3 Pointer disappears and reappears while typing Pointer always visible

i.e. with "Hide pointer while typing" turned on, Notepad3's behaviour is inconsistent in a way that does not show on the other Scintilla-based editors. I don't think this is a Scintilla bug, I believe it's a bug in the Notepad3 code.

@zufuliu
Copy link

zufuliu commented Mar 31, 2024

Just fixed (or work round) the same bug in Notepad2 by disable WM_SETREDRAW and InvalidateRect for statusbar updating on typing. Similar change may fix the bug in Notepad3.

@hpwamr
Copy link
Collaborator

hpwamr commented Mar 31, 2024

how they respected the "Hide pointer while typing" setting in Windows.

In the following image, the location of this setting in Windows.

2024-03-31_200927

@hpwamr
Copy link
Collaborator

hpwamr commented May 22, 2024

Hello @craigo- ,

Feel free to test the "BETA/RC PortableApps", version "Notepad3Portable_6.24.522.1_rc3.paf" or newer, see in issue #1129.

"Notepad3Portable BETA/RC PortableApps" version can be used with or without ".7z" extension.

Also, feel free to test the "BETA/RC Setup", version "Notepad3_6.24.522.1_rc3_Setup" or newer, see the 2nd list in issue #1129.

Comments and suggestions are welcome... 😃

@craigo-
Copy link
Author

craigo- commented May 22, 2024

Confirmed fixed in version 6.24.522.1 rc3 - thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants