lite icon indicating copy to clipboard operation
lite copied to clipboard

Double/triple click persists after moving mouse

Open codecat opened this issue 5 years ago • 8 comments
trafficstars

Looks like some SDL thing. If you click twice in 2 different locations in quick succession, it selects a word. If you do it three times it selects the line. The click count should reset when clicking somewhere else in a different location.

Additionally, it looks like SDL's clicks goes beyond 3, which means that if you click more than 3 times, nothing happens, which is inconsistent with the rest of the system.

This is on Linux.

codecat avatar May 09 '20 11:05 codecat

isn't that a feature? most editors behave this way: double-click: select word triple-click: select line Since most users move the mouse during multiple clicks, a certain tolerance for movement has to be granted. This tolerance is mostly given with click-speed of system. Does it help you when you adjust click interval on your system?

SwissalpS avatar Jun 27 '20 15:06 SwissalpS

Well, having a movement tolerance would be an idea, but in this case there is no tolerance at all. (Haven’t tried Lite in a while so unsure if it’s still the case currently.)

I looked at the source code for this at the time and it’s not implemented to account for mouse movement during double or triple clicks.

codecat avatar Jun 27 '20 15:06 codecat

Give it another try :)

SwissalpS avatar Jun 27 '20 15:06 SwissalpS

Just did - there's still issues, ~~although now it seems even more inconsistent than before~~ actually I take that back, there's the exact same issues as before.

codecat avatar Jun 27 '20 15:06 codecat

interesting, I can't reproduce on Fedora 32

SwissalpS avatar Jun 27 '20 15:06 SwissalpS

by the time I move more than a couple of characters, the count is reset.

SwissalpS avatar Jun 27 '20 15:06 SwissalpS

Try clicking 1 line, moving the mouse up to the line above it and clicking again. This will cause it to select a word.

codecat avatar Jun 27 '20 15:06 codecat

OK, can occasionally get a word to be selected when moving only to next line. I need to be very fast and consider the next line to be in tolerance distance, especially with small fonts.

In which situation do you click multiple times in short succession without wanting to select?

SwissalpS avatar Jun 27 '20 15:06 SwissalpS