--
You received this message because you are subscribed to the Google Groups "chromium-hterm" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/CAAH9RPWZOSXRetKJ%3DO4v7VJBt%3Ds0xWkpg5jjGMX%3DFDXx%3D8fFvw%40mail.gmail.com.
Oh, this is really interesting. Thanks for explaining. I've not heard of this before. (Yes, I'm using tmux)So, if I understand correctly, my palm-detection-issues (read: linux trackpad palm detection is awful) will just be sent further down the line. If that's the case, that's certainly much better than hterm taking on the burden of this problem.
Perhaps the best solution (aside from palm detection being better) is that I just inject my snippet into hterm with a user-js extension...
Thanks again, Robert!
Since scroll support between hterm and tmux is something I’ve been tweaking in my own setup recently, I thought I’d share my own setup.
In hterm’s settings, I have scroll-wheel-move-multiplier
set to 1. The relevant portion of my .tmux.conf
(I’m running tmux 2.1 – these settings as written probably won’t work with earlier versions):
# Enable mouse support.
set -g mouse on
# Toggle mouse support.
bind-key M set -g mouse \; display "Mouse mode #{?mouse,on,off}."
# Send mouse-scroll-down to the correct pane.
bind-key -T root WheelDownPane select-pane -t {mouse} \; send-keys -M
# Automatically enter edit mode when we see mouse-scroll-up.
bind-key -T root WheelUpPane if-shell -F -t {mouse} "#{mouse_any_flag}" "send-keys -M" "if-shell -F -t {mouse} '#{pane_in_mode}' 'send-keys -M' 'select-pane -t {mouse} ; copy-mode -e ; send-keys -M'"
# Enters copy mode in the mouse's pane for Ctrl+<mouse-scroll-*>.
bind-key -T root C-WheelDownPane select-pane -t {mouse} \; copy-mode -e \; send-keys -M
bind-key -T root C-WheelUpPane select-pane -t {mouse} \; copy-mode -e \; send-keys -M
# Considering these.
bind-key -t emacs-copy C-WheelDownPane halfpage-down
bind-key -t emacs-copy C-WheelUpPane halfpage-up
bind-key -t vi-copy C-WheelDownPane halfpage-down
bind-key -t vi-copy C-WheelUpPane halfpage-up
If you don’t want tmux doing anything with the scroll wheel, you can use settings similar to these (you still need tmux’s mouse support for these to work):
# Eat scroll wheel events.
bind-key -T root WheelDownPane run "true"
bind-key -T root WheelUpPane run "true"
bind-key -T root C-WheelDownPane run "true"
bind-key -T root C-WheelUpPane run "true"
# TODO(townba): Do I need other modifier-key versions? How about *Border or
# *Status versions?
As a side note, if you’re on a Mac and OS X is zooming when you’re pressing Control and using the scroll wheel, you can change that behavior by going to System Preferences → Accessibility → Zoom. You should see “Use scroll gesture with modifier keys to zoom” is enabled and set to “⌃ Control”. Consider either disabling it or changing the modifier keys to “⌘ Command” (an option in the drop list) or maybe “⌃⌘” (put focus in the edit control and press “Control” and “Command” together).
Brad Town
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-hterm/CA%2BSC%2BVqdFXWb2pdp7o-qsfG_O1cxf9OXjV_nr-UjKfJA229EXg%40mail.gmail.com.To unsubscribe from this group and stop receiving emails from it, send an email to chromium-hter...@chromium.org.