Add a setting to disable mouse-wheel scrolling #5610

Closed
opened 2026-01-31 00:17:23 +00:00 by claunia · 6 comments
Owner

Originally created by @zadjii-msft on GitHub (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.

Originally created by @zadjii-msft on GitHub (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.
Author
Owner

@bloem777 commented on GitHub (Jan 23, 2020):

My experience is that scrolling in a tmux window not possible at the moment.

@bloem777 commented on GitHub (Jan 23, 2020): My experience is that scrolling in a tmux window not possible at the moment.
Author
Owner

@zadjii-msft commented on GitHub (Jan 23, 2020):

@bloem777 That's correct, mouse mode doesn't work quite yet. Please refer to #545, #376

@zadjii-msft commented on GitHub (Jan 23, 2020): @bloem777 That's correct, mouse mode doesn't work quite yet. Please refer to #545, #376
Author
Owner

@andreykaipov commented on GitHub (May 2, 2020):

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

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

@andreykaipov commented on GitHub (May 2, 2020): I added `"historySize": 0` to my profile to disable scrolling. Can't scroll if there's nothing to scroll to! 🙃
Author
Owner

@alanlivio commented on GitHub (Nov 3, 2022):

It is a very interesting feature.

@alanlivio commented on GitHub (Nov 3, 2022): It is a very interesting feature.
Author
Owner

@SWARAJSINGH211 commented on GitHub (Jan 15, 2024):

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;
}

@SWARAJSINGH211 commented on GitHub (Jan 15, 2024): 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; }
Author
Owner

@marcelwgn commented on GitHub (Apr 9, 2024):

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

@marcelwgn commented on GitHub (Apr 9, 2024): @SWARAJSINGH211 Do I understand your comment correctly that you would like (or already started/tried) working on this issue? 😊
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5610