Scrolling issue using tmux on 4k monitor #17206

Closed
opened 2026-01-31 05:35:25 +00:00 by claunia · 9 comments
Owner

Originally created by @xy9485 on GitHub (Apr 9, 2022).

Windows Terminal version

1.12.10732.0

Windows build number

19044.1586

Other Software

tmux 3.0a

Steps to reproduce

active set -g mouse on

Expected Behavior

Mouse scrolling as expected

Actual Behavior

Scrolling only works when mouse is located in certain area of the display, clicking works well in contrast.
I notice this on my 4k monitor, it looks fine on a 1080p monitor. Looks like there is a mismatching betweeen the actual monitor resolution and resolution interpreted by Windows Terminal or by Tmux?

Originally created by @xy9485 on GitHub (Apr 9, 2022). ### Windows Terminal version 1.12.10732.0 ### Windows build number 19044.1586 ### Other Software tmux 3.0a ### Steps to reproduce active `set -g mouse on` ### Expected Behavior Mouse scrolling as expected ### Actual Behavior Scrolling only works when mouse is located in certain area of the display, clicking works well in contrast. I notice this on my 4k monitor, it looks fine on a 1080p monitor. Looks like there is a mismatching betweeen the actual monitor resolution and resolution interpreted by Windows Terminal or by Tmux?
Author
Owner

@zadjii-msft commented on GitHub (Apr 11, 2022):

we've heard some variations of this in the past, so I just want to try and narrow it down.

  1. Are you using a trackpad/touchpad to scroll, or an actual mouse wheel?
  2. Does the mouse not work at a specific column in the window? Like, if you change the font size, is it the same column that doesn't work for scrolling, or is more about the actual pixel location on the screen?

2 I'm thinking is less likely, considering that "clicking works well". I cannot for the life of me find the original issue though....

@zadjii-msft commented on GitHub (Apr 11, 2022): we've heard some variations of this in the past, so I just want to try and narrow it down. 1. Are you using a trackpad/touchpad to scroll, or an actual mouse wheel? 2. Does the mouse not work at a specific _column_ in the window? Like, if you change the font size, is it the same column that doesn't work for scrolling, or is more about the actual pixel location on the screen? 2 I'm thinking is less likely, considering that "clicking works well". I cannot for the life of me find the original issue though....
Author
Owner

@xy9485 commented on GitHub (Apr 11, 2022):

  1. I'm using laptop with monitor, using touchpad looks good, but actual mouse wheel doesn't work.
  2. I tried and I think it has nothing to do with column, it's more about pixel location(or area) within the window, not matter in which size the window is scaled, full screen or not.
@xy9485 commented on GitHub (Apr 11, 2022): 1. I'm using laptop with monitor, using touchpad looks good, but actual mouse wheel doesn't work. 2. I tried and I think it has nothing to do with _column_, it's more about pixel location(or area) within the window, not matter in which size the window is scaled, full screen or not.
Author
Owner

@zadjii-msft commented on GitHub (Apr 11, 2022):

using touchpad looks good, but actual mouse wheel doesn't work.

That's actually the opposite of what I'd expect. #2606 was the issue I was thinking of. Do you have anything like X Mouse Button Control, or some other custom mouse wheel software installed?

Does changing the DPI change the region of the window that works for scrolling?

Is this only an issue in tmux?

@zadjii-msft commented on GitHub (Apr 11, 2022): > using touchpad looks good, but actual mouse wheel doesn't work. That's actually the opposite of what I'd expect. #2606 was the issue I was thinking of. Do you have anything like X Mouse Button Control, or some other custom mouse wheel software installed? Does changing the DPI change the region of the window that works for scrolling? Is this _only_ an issue in tmux?
Author
Owner

@xy9485 commented on GitHub (Apr 11, 2022):

That's actually the opposite of what I'd expect. #2606 was the issue I was thinking of. Do you have anything like X Mouse Button Control, or some other custom mouse wheel software installed?

I don't install any mouse related software

Does changing the DPI change the region of the window that works for scrolling?

Since I don't use any mouse control software, there is no way to change DPI, I just plugin usb and use the mouse.

Is this only an issue in tmux?

So far yes

@xy9485 commented on GitHub (Apr 11, 2022): > That's actually the opposite of what I'd expect. #2606 was the issue I was thinking of. Do you have anything like X Mouse Button Control, or some other custom mouse wheel software installed? I don't install any mouse related software > Does changing the DPI change the region of the window that works for scrolling? Since I don't use any mouse control software, there is no way to change DPI, I just plugin usb and use the mouse. > Is this _only_ an issue in tmux? So far yes
Author
Owner

@zadjii-msft commented on GitHub (Apr 11, 2022):

Does changing the DPI change the region of the window that works for scrolling?

Since I don't use any mouse control software, there is no way to change DPI, I just plugin usb and use the mouse.

Sorry, I meant this setting:
image

Change the display scale. If this is #2606, then changing that to like, 100% should make the issue go away.

@zadjii-msft commented on GitHub (Apr 11, 2022): > > Does changing the DPI change the region of the window that works for scrolling? > > Since I don't use any mouse control software, there is no way to change DPI, I just plugin usb and use the mouse. Sorry, I meant this setting: ![image](https://user-images.githubusercontent.com/18356694/162756158-003fce07-2d31-47a5-a258-b7eddc6484ea.png) Change the display scale. If this is #2606, then changing that to like, 100% should make the issue go away.
Author
Owner

@xy9485 commented on GitHub (Apr 11, 2022):

Thanks, I'll try this when I set in front of my monitor. However, to my experience, 100% scaling on 4k display might not friendly to eyes, things are just too small.

@xy9485 commented on GitHub (Apr 11, 2022): Thanks, I'll try this when I set in front of my monitor. However, to my experience, 100% scaling on 4k display might not friendly to eyes, things are just too small.
Author
Owner

@zadjii-msft commented on GitHub (Apr 11, 2022):

100% scaling on 4k display might not friendly to eyes, things are just too small.

Oh, totally agree. I'm mostly just recommending that temporarily to get a beat on the root cause of this issue. If that doesn't fix it, then there'd be something else to investigate. You should feel free to switch back to whatever scaling you like after that quick test 😝

@zadjii-msft commented on GitHub (Apr 11, 2022): > 100% scaling on 4k display might not friendly to eyes, things are just too small. Oh, totally agree. I'm mostly just recommending that temporarily to get a beat on the root cause of this issue. If that doesn't fix it, then there'd be something else to investigate. You should feel free to switch back to whatever scaling you like after that quick test 😝
Author
Owner

@xy9485 commented on GitHub (Apr 11, 2022):

Yeah, could be a temporary solution, but still looking forward to a real fix in the future ;)

@xy9485 commented on GitHub (Apr 11, 2022): Yeah, could be a temporary solution, but still looking forward to a real fix in the future ;)
Author
Owner

@ghost commented on GitHub (Apr 15, 2022):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Apr 15, 2022): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#17206