Skip to content

V Scroll Speed does not work #56317

Open
Open

Description

@PabloDevGit

Godot version

3.4.2 stable

System information

w10 64

Issue description

I want a faster vertical scroll when I use the mouse wheel but "V Scroll speed" has no effect on that.
Nothing just happens even if you put a value of 240.
Captura

Steps to reproduce

just set a value in the option and navigate vertically through the code using the middle wheel of the mouse (turning the wheel) to check if it works or not.
It will not work

Minimal reproduction project

...

Activity

  1. KoBeWi commented on Dec 30, 2021

    @KoBeWi
    Member

    Looks like some TextEdit bug. When you change the v_scroll_speed property it doesn't seem to have any effect, regardless of smoothing. Also valid in 9f05867

  2. added this to the 4.0 milestone on Jan 30, 2022
  3. jmb462 commented on Feb 12, 2022

    @jmb462
    Contributor

    I've investigated on this issue and I think there isn't any issue (or I can't reproduce it neither in master nor in 3.4.2 stable).

    The "scrolling speed" could be missleading.

    When you're scrolling with mouse wheel, each step (notch?) of the mouse wheel will always move 3 lines up or down.

    But, when you spam the wheel, the destination scroll value will be reach less or more rapidely according to "V Scroll Speed" editor property.

    In this gif, I scroll the mouse wheel as fast as I can and you can see the difference :
    fixed

    So I think this issue should be closed (Seems to be a mistake about what this setting is supposed to do)
    However, while investating this one, i've found some issue about this property : #58009

  4. PabloDevGit commented on Feb 12, 2022

    @PabloDevGit
    Author

    Don't close this for now, let me check it later please.

  5. PabloDevGit commented on Feb 13, 2022

    @PabloDevGit
    Author

    I explain.
    I want to navigate through code faster using the mouse wheel.
    Changing the option of the scroll lines that are made by pressing the mouse wheel from windows has no effect in the script editor.

    Captura2

    Ok, I change the "V Scroll speed" option thinking that this option refers to the central mouse wheel and the lines that scroll at each "notch" that the wheel turns.
    It also has no effect.
    The scrolling speed in the editor using the middle mouse wheel is always the same.
    So what does the "V scroll speed" option mean?

    Captura3

  6. jmb462 commented on Feb 13, 2022

    @jmb462
    Contributor

    OK, so the problem is not v_scroll_speed which isn't meant to change that.

    godot/scene/gui/text_edit.cpp

    Lines 1546 to 1555 in 48ed040

    if (mb->get_button_index() == MouseButton::WHEEL_UP && !mb->is_command_pressed()) {
    if (mb->is_shift_pressed()) {
    h_scroll->set_value(h_scroll->get_value() - (100 * mb->get_factor()));
    } else if (mb->is_alt_pressed()) {
    // Scroll 5 times as fast as normal (like in Visual Studio Code).
    _scroll_up(15 * mb->get_factor());
    } else if (v_scroll->is_visible()) {
    // Scroll 3 lines.
    _scroll_up(3 * mb->get_factor());
    }

    You can get 15 lines by pressing ALT while scrolling.
    3 lines default is hardcoded.

    get_factor() is equal to 1 when turning 1 wheel step and augment when spamming the mouse wheel.

    Maybe you could open a proposal to add a wheel mouse sensitivity factor as a setting and check for community interest.

  7. Calinou commented on Feb 13, 2022

    @Calinou
    Member

    Maybe you could open a proposal to add a wheel mouse sensitivity factor as a setting and check for community interest.

    I definitely agree with adding such a setting, and I think it should affect all scrollable controls (not just TextEdit). The Alt modifier could also be made to work in all scrollable controls. I implemented it in TextEdit only as a stopgap, but it could be useful to have for large scene trees or long Output logs too.

  8. removed this from the 4.0 milestone on Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions