[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mwheel scroll horizontally
From: |
Juri Linkov |
Subject: |
Re: mwheel scroll horizontally |
Date: |
Tue, 05 Oct 2010 00:32:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
A related patch. While scrolling using the mouse with modifiers pressed,
the mouse pointer jumps off the frame (in mouse-avoidance-mode).
This patch adds these modifiers to ignore while using the mouse:
=== modified file 'lisp/avoid.el'
--- lisp/avoid.el 2010-01-13 08:35:10 +0000
+++ lisp/avoid.el 2010-10-04 23:28:49 +0000
@@ -294,7 +294,13 @@ (defun mouse-avoidance-ignore-p ()
(memq 'double modifiers)
(memq 'triple modifiers)
(memq 'drag modifiers)
- (memq 'down modifiers)))))))
+ (memq 'down modifiers)
+ (memq 'meta modifiers)
+ (memq 'control modifiers)
+ (memq 'shift modifiers)
+ (memq 'hyper modifiers)
+ (memq 'super modifiers)
+ (memq 'alt modifiers)))))))
(defun mouse-avoidance-banish ()
(if (not (mouse-avoidance-ignore-p))