summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2011-09-24 14:38:20 -0400
committerChong Yidong <cyd@stupidchicken.com>2011-09-24 14:38:20 -0400
commit371d6a61466a2efe33a3d61a91cb8680b8db6277 (patch)
tree189a6fdf27b00d7e2eae1bd36f173bd180143c09 /lisp/mouse.el
parentcddde9219f8ec1a47e0e967c117e269ecf9742e9 (diff)
* mouse.el (mouse-drag-track): Set scroll-margin to 0 while tracking.
Fixes: debbugs:9541
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 63395619f4..8a74782250 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -904,7 +904,8 @@ DO-MOUSE-DRAG-REGION-POST-PROCESS should only be used by
(mouse-minibuffer-check start-event)
(setq mouse-selection-click-count-buffer (current-buffer))
(deactivate-mark)
- (let* ((original-window (selected-window))
+ (let* ((scroll-margin 0) ; Avoid margin scrolling (Bug#9541).
+ (original-window (selected-window))
;; We've recorded what we needed from the current buffer and
;; window, now let's jump to the place of the event, where things
;; are happening.