Git Product home page Git Product logo

Comments (5)

lansingthomas avatar lansingthomas commented on May 25, 2024 1

Makes sense.

I want what you propose:
scroll the buffer being hovered!

from nyxt.

lansingthomas avatar lansingthomas commented on May 25, 2024

Eeeeeew a bug

from nyxt.

lansingthomas avatar lansingthomas commented on May 25, 2024

Soo... just thinking out loud here.

If we set the input-focus to follow mouse pointer hover position,

  • then this scrolling problem is fixed, as well as a few other problems (like trying to run quit-prompt-buffer when focus is on the main buffer).
  • however, we introduce another problem (opening prompt buffer with mouse pointer on the upper half of the screen would change input to main buffer at the wrong time)

Sooo... Can we set the input-focus to follow the mouse pointer -- AFTER a transition has been made (from main-buffer to prompt-buffer, but not the other way.)

from nyxt.

lansingthomas avatar lansingthomas commented on May 25, 2024

Like this:
a mouse cursor transition from mainbpromptb | toggle-buffer-focus
a mouse cursor transition from promptbmainb | no action (a click is still required)

from nyxt.

aadcg avatar aadcg commented on May 25, 2024

@lansingthomas think about the user. You suggestion feels overly complicated for no good reason. Generally speaking, setting the focus without a mouse click is rather unintuitive and not a good default.

On the other hand, people expect to interact, i.e. scroll, with the thing that they're pointing to.

Think about the text box from where you'll be writing a reply to my message. Hover over the box - it scrolls the message. Hover outside the text box - it scrolls the issue's page. Focus on hover is orthogonal to this discussion.

From my top post:

When the prompt buffer is open and the mouse hovers over a non prompt buffer area, I'd suggest either no scrolling or scrolling the buffer that is being hovered.

I think it's clear what my choice would be :)

from nyxt.

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.