Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mouse does not work #504

Open
timoxley opened this issue Jan 9, 2022 · 2 comments
Open

Mouse does not work #504

timoxley opened this issue Jan 9, 2022 · 2 comments
Labels
enhancement New feature or request frontend pertaining to the frontend (src/renderer) good first issue Good for newcomers

Comments

@timoxley
Copy link

timoxley commented Jan 9, 2022

Mouse just doesn't seem to do anything.
No clicks, no scrolling. Built from master at c85671e on M1Max, built with latest brew install neovim --HEAD.
Is there some special config I should be adding/removing, or some hints on what I should look at?

@smolck smolck added enhancement New feature or request frontend pertaining to the frontend (src/renderer) good first issue Good for newcomers labels Jan 9, 2022
@smolck
Copy link
Owner

smolck commented Jan 9, 2022

Veonim, the project this was forked from, purposefully did not include any mouse support. I don't really ever use the mouse myself in TUI or otherwise, so I haven't cared to add such support.

In theory it shouldn't be too hard to throw an onclick event on the canvas or whatever DOM element, convert the (x, y) coordinates of that to (col, row) neovim coordinates, and then call nvim_input_mouse with the necessary parameters. If you or anyone else is interested in writing the code to do this I could probably flesh out what needs to be done more; otherwise, will have to see if I can get around to it at some point soon.

@KaranLMungra
Copy link

I would like to add the mouse support. Can you please describe in more detail how the mouse functionality will work like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend pertaining to the frontend (src/renderer) good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants