Giter VIP home page Giter VIP logo

Comments (4)

ther0n avatar ther0n commented on September 17, 2024

I don't really have an answer for you unfortunately, it's not really something I programmed. The "scrollLines" value is multiplied by .scrollWheelEventDeltaAxis1 here. I believe .scrollWheelEventDeltaAxis1 is either 1 or -1 depending on if you scroll up or down, so having a scrollLines setting of 3 will make the .scrollWheelEventDeltaAxis1 value of the scroll event sent to the application a 3 or -3.

I don't really have a reason describing the value as "lines" other than that's how Windows describes it:
image
It also seems that setting the same value in the app as what you have set in Windows will scroll almost exactly if not exactly the same amount.

from unnaturalscrollwheels.

jsejcksn avatar jsejcksn commented on September 17, 2024

Ok—I see. Thanks for responding.

Here is a suggestion for consideration: Perhaps the label can be changed to something like "Scroll multiplier" since it is a more literal description of what the option is, and that there aren't really any "lines" involved in the calculation.

Also, it might be nice to provide the default values for the options as hover text or parenthesized inline text or something similar (or maybe a button to revert to the the default values).

Also, in case you're interested, the proper name for a "wheel click" is a scroll detent.

There are definitely pros and cons to using correct technical terms vs (maybe illogical) colloquial language. I have a feeling that your audience trends toward the technical side 😉 .

from unnaturalscrollwheels.

ther0n avatar ther0n commented on September 17, 2024

Thanks for the suggestion! In a future version I might change up the wording a bit. I definitely prefer using the technically correct terms, but I also assume people are familiar with the wording found in Windows as well. Like you said there are advantages to both. I've never heard of a detent and I assume most haven't and although detent is the best word, "wheel click" is self explanatory. I could change the label to "Number of lines to scroll per detent (wheel click)" to make it easy to understand and technically accurate. The larger issue is still the "lines" not actually being lines but "Scroll multiplier per detent (wheel click)" just doesn't sound right to me.

from unnaturalscrollwheels.

jsejcksn avatar jsejcksn commented on September 17, 2024

Definitely.

per detent/wheel click

Not all mice wheels have detents, so this only applies to those that do, which is why I suggested not including it at all. (Some mice even have physical mechanisms to disable detent engagement!) If the scroll wheel has detents, then the actions are obviously quantized to that degree of radial movement, and if not, then the multiplication factor applies to however often the sensor polls, etc.

from unnaturalscrollwheels.

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.