Code Monkey home page Code Monkey logo

Comments (5)

bryphe avatar bryphe commented on August 20, 2024

Also need to look at handling modifir keys - control, alt, shift

from oni.

Bretley avatar Bretley commented on August 20, 2024

@extr0py I'm kind of an idiot to JS/TS, but if you could point me to some resources that would help me specifically understand the overview of the events and how they interact with the neovim instance (besides me combing the source) I could probably get some of these easier ones done :)

from oni.

Bretley avatar Bretley commented on August 20, 2024

Just to get started, is the UI going to hijack the right/middle click? It seems like neovim uses them for little to nothing, and most people's terminals already intercept them.

from oni.

bryphe avatar bryphe commented on August 20, 2024

@bert88sta - thanks for the PR for scrolling! Sorry that I was slow to reply to this thread. Looks like you have a pretty good grasp on the mouse events in Input/Mouse.ts, so that's great - that and Input/Keyboard.ts is where most of the action is.

The Mozilla docs are a really good reference for the general mouse events: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent
but seems like you already got the info on the scroll / delta to implement it.

Regarding middle/right click, I think you're right, it should be safe to intercept them. I don't remember ever using right/middle click with GVIM. Right-click might be nice to show a context menu at some point, but the scrolling is the most important functionality at the moment - thanks again for implementing it!

from oni.

bryphe avatar bryphe commented on August 20, 2024

I'll close this since the most important case is addressed with #45, but if there is other mouse related functionality you'd like to explore we can open a new issue or re-open this.

from oni.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.