diff options
| author | Richard M. Stallman | 1993-08-11 21:29:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-08-11 21:29:51 +0000 |
| commit | 1e49aa290a0393a8fec86fe7e74440b723d81324 (patch) | |
| tree | 9de1c66aca7cb8eba5a32361376578b7de75ea8d | |
| parent | ed814f55e1137a96c951e546447b2e8808ee3672 (diff) | |
| download | emacs-1e49aa290a0393a8fec86fe7e74440b723d81324.tar.gz emacs-1e49aa290a0393a8fec86fe7e74440b723d81324.zip | |
(mouse-drag-region): Mouse in menu bar means scroll up.
| -rw-r--r-- | lisp/mouse.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index 49e78c4f1b6..d59bc57e74d 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el | |||
| @@ -219,8 +219,16 @@ release the mouse button. Otherwise, it does not." | |||
| 219 | (mouse-scroll-subr (1+ (- mouse-row bottom)) | 219 | (mouse-scroll-subr (1+ (- mouse-row bottom)) |
| 220 | mouse-drag-overlay start-point))))) | 220 | mouse-drag-overlay start-point))))) |
| 221 | 221 | ||
| 222 | ;; Otherwise, we have no idea where the mouse is. | 222 | (t |
| 223 | (t))))) | 223 | (let ((mouse-y (cdr (cdr (mouse-position)))) |
| 224 | (menu-bar-lines (or (cdr (assq 'menu-bar-lines | ||
| 225 | (frame-parameters))) | ||
| 226 | 0))) | ||
| 227 | |||
| 228 | ;; Are we on the menu bar? | ||
| 229 | (and (integerp mouse-y) (< mouse-y menu-bar-lines) | ||
| 230 | (mouse-scroll-subr (- mouse-y menu-bar-lines) | ||
| 231 | mouse-drag-overlay start-point)))))))) | ||
| 224 | 232 | ||
| 225 | (if (and (eq (get (event-basic-type event) 'event-kind) 'mouse-click) | 233 | (if (and (eq (get (event-basic-type event) 'event-kind) 'mouse-click) |
| 226 | (eq (posn-window (event-end event)) start-window) | 234 | (eq (posn-window (event-end event)) start-window) |