* mouse.el (mouse-drag-track): Set scroll-margin to 0 while tracking.

Fixes: debbugs:9541
This commit is contained in:
Chong Yidong 2011-09-24 14:38:20 -04:00
parent cddde9219f
commit 371d6a6146
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-09-24 Chong Yidong <cyd@stupidchicken.com>
* mouse.el (mouse-drag-track): Set scroll-margin to 0 while
tracking (Bug#9541).
2011-09-24 Ulf Jasper <ulf.jasper@web.de>
* net/newst-reader.el (newsticker-html-renderer)

View file

@ -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.