bubbletea icon indicating copy to clipboard operation
bubbletea copied to clipboard

Mouse scroll doesn't work in foot terminal

Open ibrokemypie opened this issue 2 years ago • 5 comments

In the foot terminal mouse scroll events aren't triggered at all (though other mouse events trigger okay). Mouse scrolling works in other terminals such as alacritty so I don't think the issue is with my code, and other programs such as htop have working mouse scrolling support in foot making me think the issue is on bubbletea's side

ibrokemypie avatar Nov 02 '21 13:11 ibrokemypie

Hi, and thanks for the report. Are you using the Cell Motion or All Motion mouse modes? Generally-speaking, Cell Motion is generally more widely supported.

Editor’s note Based on what I'm reading in the Foot source code it appears that Foot supports both, however I haven’t yet ascertained the details of the implementations.

https://gitlab.com/dnkl/foot/-/blob/master/csi.c#L421

meowgorithm avatar Nov 02 '21 14:11 meowgorithm

Cell motion, though I also have tried all motion and that doesnt work either

ibrokemypie avatar Nov 02 '21 15:11 ibrokemypie

I'm able to detect mouse wheel events when running the mouse example in Foot.

Perhaps the issue is in your code? I'd be happy to take a look if you'd like.

meowgorithm avatar Nov 02 '21 17:11 meowgorithm

Sure, the code in question is here, I just assumed the code was fine because it was quite simple and works in every other terminal I have tried :P

ibrokemypie avatar Nov 03 '21 06:11 ibrokemypie

Hey @ibrokemypie please let us know if this is still an issue for you otherwise I'll close this issue

bashbunni avatar Sep 09 '22 18:09 bashbunni

I can't reproduce this (at least anymore) in foot. Closing, but feel free to comment if this is still an issue for you.

muesli avatar Oct 04 '22 04:10 muesli