johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.42k stars 295 forks source link

Triple click selection doesn't work #1409

Open Demetri0 opened 1 month ago

Demetri0 commented 1 month ago

Describe the bug It is convenient that triple-click (LMB) selects a paragraph, but in Foliate it is doing nothing (it seems like double click selects a word, and 3rd click deselect it)

To Reproduce Steps to reproduce the behavior:

  1. Open any e-book (fb2 in my case, but it should not be matter)
  2. Hover on some word within paragraph of text
  3. Use triple click of LBM (3 fast click in a row, like a double click but + one more ;))
  4. See that paragraph haven't been selected

Expected behavior Full text of paragraph should be selected.

Version:

johnfactotum commented 1 month ago

Yes, it's quite unfortunate. The cause is, I think, that the selection popover is modal. Probably the selection popover should be made smaller, like only a single row. Then it can be more easily made non-modal. The popover would need to be non-modal, anyway, if one is to implement selection handles (#207).