glogg icon indicating copy to clipboard operation
glogg copied to clipboard

Selecting text with the mouse does not work correctly: Selection is always shifted to the right

Open omasseau opened this issue 7 years ago • 8 comments

When I want to select text with my mouse to copy it, the selection does not start at the character under my mouse pointer but several characters to the right of it. Same goes for the end of the selection. This makes it really hard to copy some text from a line.

The more the start of the selection is to the right, the bigger is the offset.

Version: glogg v1.1.4-x86_64 OS: Windows 10 Pro 64 bits.

omasseau avatar Nov 08 '17 10:11 omasseau

Might be some text encoding issue. Could you provide a log file which causes this error?

variar avatar Nov 08 '17 11:11 variar

Well I have the problem with any kind of file. Even a simple file with one line of text such as the one attached. Encoding does not change anything. I've tried UTF-8 files, Windows-1252, .... same problem.

test.txt

omasseau avatar Nov 09 '17 11:11 omasseau

I think it is a problem with the scale feature of Windows 10. If I set it to 100% I don't have the problem. But 100% on a 4k monitor is quite unreadable ;)

omasseau avatar Nov 09 '17 11:11 omasseau

Might be Qt hidpi issue. I'll try to build glogg with recent Qt version.

variar avatar Nov 09 '17 14:11 variar

I've set up dev build artifacts packaging from Appveyor CI builds in my fork. @omasseau, you can try latest build from here https://ci.appveyor.com/project/variar/klogg/build/artifacts?branch=master

variar avatar Nov 10 '17 13:11 variar

I have the same issue in Windows 11 PRO. glogg_rYRIbvIVUp

And, oddly, when selecting the text, it injects a space char between all characters. Perhaps, this is why I can't find any text when searching.

tberne avatar Aug 04 '22 21:08 tberne

@tberne could you try klogg (https://github.com/variar/klogg) in the same environment?

variar avatar Aug 05 '22 06:08 variar

@variar , klogg works like a charm!! Thank you very much!!!

tberne avatar Aug 05 '22 14:08 tberne