[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mouse wheel scrolling in gtk
From: |
Joachim Nilsson |
Subject: |
Re: mouse wheel scrolling in gtk |
Date: |
Wed, 30 Jul 2008 03:38:15 +0200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080724) |
Solved!
Miles Bader wrote, on 07/30/2008 02:45 AM:
> Joachim Nilsson <address@hidden> writes:
>
>> This is a bit counter intuitive since other Gtk/Gnome applications honor
>> this. I.e. you can mouse-wheel-scroll any of an applications parts
>> without having to first click/focus that part of the application.
>> Can this be fixed, or is there perhaps some configuration setting that I
>> have missed?
>>
> C-h v mouse-wheel-follow-mouse RET
> `mouse-wheel-follow-mouse' is a variable defined in `mwheel.el'.
> Whether the mouse wheel should scroll the window that the mouse is over.
> This can be slightly disconcerting, but some people prefer it.
>
Ouch, thanks Miles!
Turns out I had the following culprit embedded deep in my .emacs:
;; setup scroll mouse settings
(defun up-slightly () (interactive) (scroll-up 5))
(defun down-slightly () (interactive) (scroll-down 5))
(global-set-key [mouse-4] 'down-slightly)
(global-set-key [mouse-5] 'up-slightly)
(defun up-one () (interactive) (scroll-up 1))
(defun down-one () (interactive) (scroll-down 1))
(global-set-key [S-mouse-4] 'down-one)
(global-set-key [S-mouse-5] 'up-one)
(defun up-a-lot () (interactive) (scroll-up))
(defun down-a-lot () (interactive) (scroll-down))
(global-set-key [C-mouse-4] 'down-a-lot)
(global-set-key [C-mouse-5] 'up-a-lot)
As soon as I'd removed it the default settings for mouse wheel mode
worked just fine for my purposes!
Many thanks!
/Jocke
joachim_nilsson.vcf
Description: Vcard