halfbrained / cuda_lsp

LSP Client plugin for CudaText
6 stars 4 forks source link

Cannot move mouse over hover-form #89

Closed Alexey-T closed 3 years ago

Alexey-T commented 3 years ago

plugin code: HTML Tooltips. hover over compile in last line re.compile(REGEX_ENT, 0) form shows, but with distance above name.

Screenshot from 2021-05-12 23-38-14

pic shows that distance is about 10-20 px. now I move mouse to hover-form and mouse hovers the upper line re.compile(REGEX_PIC_CSS, re.I) and so hover-form HIDES and SHOWS AGAIN for another line! (I move mouse with Ctrl pressed) so I cannot move mouse over hover form!

Alexey-T commented 3 years ago

possible solving: if mouse moves from original hover-form-trigger (on ".compile") to the hover form itself,dont trigger the new 'hover'

or: show hover-form just near the trigger-pos.

Alexey-T commented 3 years ago

or: document that mouse must be moved w-out Ctrl to move it over form. it is okay too.

halfbrained commented 3 years ago

Removed extra line between hover dialog and target text (my mistake from converting text position to pixels)

And increased cursor move tolerance. 15 px was too little. Works well now.