lsp-haskell icon indicating copy to clipboard operation
lsp-haskell copied to clipboard

Mouse scrolling stuck with large code lens

Open yaitskov opened this issue 4 years ago • 4 comments

Hi,

Import with long list of highlighted names which are actually used in the file prevent mouse scrolling. Looks like additionally generated lines are not counted correctly. Meanwhile keyboard cursor navigation is working.

highlighted-imports

GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.16.0)
  lsp-haskell        20210813.1040 dependency            Haskell support for lsp-mode
  lsp-mode           20211103.1331 dependency            LSP mode
  lsp-ui             20211101.131  dependency            UI modules for lsp-mode

yaitskov avatar Nov 06 '21 04:11 yaitskov

By "prevent scrolling" you mean that you cannot go down with the mouse?

Looks like additionally generated lines are not counted correctly.

What do you mean?

yyoncho avatar Nov 06 '21 06:11 yyoncho

This is an issue with lsp-mode, and the thing you are having trouble with is a code lens.

michaelpj avatar Nov 06 '21 10:11 michaelpj

I'm having this same issue, and I'd like to add that scrolling is also stuck whenever you wankt to page up or page down through code, using the keyboard (C-f and C-b in Evil, or pgup / pgdown on the keyboard).

JonathanReeve avatar Feb 28 '22 16:02 JonathanReeve

I suspect the issue here is ultimately with code lenses that span multiple lines?

michaelpj avatar Feb 28 '22 21:02 michaelpj

The HLS lenses are now trimmed, so this shouldn't come up any more.

michaelpj avatar Aug 15 '22 20:08 michaelpj