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

Add a setting to disable mouse-wheel scrolling #3990

Open
zadjii-msft opened this issue Dec 17, 2019 · 6 comments
Open

Add a setting to disable mouse-wheel scrolling #3990

zadjii-msft opened this issue Dec 17, 2019 · 6 comments
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) good first issue This is a fix that might be easier for someone to do as a first contribution Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Milestone

Comments

@zadjii-msft
Copy link
Member

zadjii-msft commented Dec 17, 2019

This is in lieu of having actual mouse bindings. Some people might actually want the mouse to not scroll, or might want to pass the mouse scrolling through.

Until we have proper mouse bindings, this settings should suffice.

note 11/8/2021

This task is a "instead of #1553" task. If we just do #1553, then this isn't relevant.

note 2/22/2022

I'd add this as a profile setting, experimental.mouseWheelScrolling: bool. Probably just the same as #11710. Since we're using this as an "escape hatch" issue while we wait for the architecture to do #1553 right, I'd just go ahead and disable all wheel scrolling with this setting - including opacity scrolling and zooming.

@zadjii-msft zadjii-msft added Product-Terminal The new Windows Terminal. Issue-Task It's a feature request, but it doesn't really need a major design. labels Dec 17, 2019
@zadjii-msft zadjii-msft added this to the Terminal Backlog milestone Dec 17, 2019
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Dec 17, 2019
@zadjii-msft zadjii-msft added Area-Settings Issues related to settings and customizability, for console or terminal Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) labels Dec 17, 2019
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label Dec 17, 2019
@DHowett-MSFT DHowett-MSFT removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label Dec 19, 2019
@bloem777

This comment was marked as off-topic.

@zadjii-msft

This comment was marked as off-topic.

@andreykaipov
Copy link
Member

I added "historySize": 0 to my profile to disable scrolling.

Can't scroll if there's nothing to scroll to! 🙃

@zadjii-msft zadjii-msft modified the milestones: Terminal Backlog, Backlog Jan 4, 2022
@zadjii-msft zadjii-msft added good first issue This is a fix that might be easier for someone to do as a first contribution Help Wanted We encourage anyone to jump in on these. labels Feb 22, 2022
@alanlivio

This comment was marked as spam.

@SWARAJSINGH211
Copy link

is it okay a setting to dsable mouse-whell scrollng
#include <windows.h>

int main() {
// Create a dialog box with a checkbox to disable mouse-wheel scrolling.
HWND hWndDialog = CreateDialog(NULL, IDD_DIALOG1, NULL, NULL);

// Show the dialog box.
ShowWindow(hWndDialog, SW_SHOW);

// Get the message loop for the dialog box.
MSG msg;
while (GetMessage(&msg, NULL, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}

// Get the state of the checkbox.
BOOL fDisableMouseWheelScrolling = IsDlgButtonChecked(hWndDialog, IDC_DISABLE_MOUSE_WHEEL_SCROLLING);

// Disable mouse-wheel scrolling if the checkbox is checked.
if (fDisableMouseWheelScrolling) {
SetScrollRate(NULL, 0, 0);
}

// Destroy the dialog box.
DestroyWindow(hWndDialog);

return 0;
}

@marcelwgn
Copy link
Contributor

@SWARAJSINGH211 Do I understand your comment correctly that you would like (or already started/tried) working on this issue? 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) good first issue This is a fix that might be easier for someone to do as a first contribution Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

No branches or pull requests

7 participants