mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-17 17:58:46 +00:00
Fix mishandling of dnd-scroll-margin with scroll bar motion
* lisp/dnd.el (dnd-handle-movement): Ignore posns inside scroll bars for now.
This commit is contained in:
parent
99cb3a7154
commit
18a1c7de2e
@ -112,7 +112,9 @@ program."
|
||||
"Handle mouse movement to POSN when receiving a drop from another program."
|
||||
(when (windowp (posn-window posn))
|
||||
(with-selected-window (posn-window posn)
|
||||
(when dnd-scroll-margin
|
||||
(when (and dnd-scroll-margin
|
||||
;; TODO: handle scroll bars reasonably.
|
||||
(not (posn-area posn)))
|
||||
(ignore-errors
|
||||
(let* ((row (cdr (posn-col-row posn)))
|
||||
(window (when (windowp (posn-window posn))
|
||||
|
Loading…
Reference in New Issue
Block a user