egui icon indicating copy to clipboard operation
egui copied to clipboard

Double/Triple-click unpolished behaviour

Open fezjo opened this issue 2 years ago • 3 comments

Describe the bug Double/Triple-clicks do not behave as one would expect:

  1. Quadruple-click is the same as triple-click. Instead, they should be treated the same as single-click. Kooha-2023-04-02-16-04-58

  2. Double/triple-clicks are triggered even after moving cursor. Instead, they should be only trigger single-click when changing cursor position. Kooha-2023-04-02-16-05-25

To Reproduce Repeatedly click inside Demo Code Editor.

Desktop:

  • OS: Arch Linux

fezjo avatar Apr 02 '23 14:04 fezjo

I already did some work on this: https://github.com/emilk/egui/compare/master...fezjo:egui:fezjo/multi-click

fezjo avatar Apr 02 '23 14:04 fezjo

i recently started using this amazing library and i am also having this issue on windows will it be fixed anytime soon?

JumpyLionnn avatar Jul 29 '23 12:07 JumpyLionnn

There is more polishing for this. Now it doesn't have the a drag to select feature at all because events happen on Mouse up instead of Mouse down.

Double clicking on text should work like this:

  1. Mouse Down
  2. Mouse Up
  3. Mouse Down (This selects the word)
  4. Then starting to drag mouse will select words
  5. Mouse Up selection is done.

Triple clicking on text should work like this:

  1. Mouse Down
  2. Mouse Up
  3. Mouse Down
  4. Mouse Up
  5. Mouse Down (This selects the paragraph)
  6. Then starting to drag mouse will select paragraphs
  7. Mouse Up selection is done.

This is subtle, but that's how it works on browsers and text editors.

Ciantic avatar Nov 24 '25 11:11 Ciantic