* Emacs does not scroll on Mac OS X
@ 2003-09-01 13:52 Michael Tüxen
0 siblings, 0 replies; 2+ messages in thread
From: Michael Tüxen @ 2003-09-01 13:52 UTC (permalink / raw)
Dear all,
I'm using Emacs on Mac OS X (built from the CVS).
After loading a long file I can scroll through the
file by clicking on the slider and moving it. But
clicking on the little arrows on the right lower
edge and holding the mouse down does not scroll
through the doc. It displays only
vertical-scroll-bar down-mouse-1
and when I stop holding it down mouse-1 is
appended.
Is this expected behaviour or a bug?
Best regards
Michael
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <mailman.1378.1062425274.29551.bug-gnu-emacs@gnu.org>]
* Re: Emacs does not scroll on Mac OS X
[not found] <mailman.1378.1062425274.29551.bug-gnu-emacs@gnu.org>
@ 2003-09-01 15:45 ` Andrew Choi
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Choi @ 2003-09-01 15:45 UTC (permalink / raw)
Cc: bug-gnu-emacs
Michael Tüxen <Michael.Tuexen@micmac.franken.de> writes:
> I'm using Emacs on Mac OS X (built from the CVS). After loading a
> long file I can scroll through the file by clicking on the slider and
> moving it. But clicking on the little arrows on the right lower edge
> and holding the mouse down does not scroll through the doc. It
> displays only vertical-scroll-bar down-mouse-1 and when I stop holding
> it down mouse-1 is appended.
>
> Is this expected behaviour or a bug?
It is a bug now. It was an attempt to auto-repeat mouse events in the
scroll bar, which used to work. Perhaps it's better to do without the
auto-repeat:
(defun mac-handle-scroll-bar-event (event)
"Handle scroll bar EVENT on Mac OS."
(interactive "e")
(let* ((position (event-start event))
(window (nth 0 position))
(bar-part (nth 4 position)))
(select-window window)
(cond
((eq bar-part 'up)
(read-event) ; discard mouse-1
(scroll-down 1))
((eq bar-part 'above-handle)
(read-event)
(scroll-down))
((eq bar-part 'handle)
(read-event)
(scroll-bar-drag event))
((eq bar-part 'below-handle)
(read-event)
(scroll-up))
((eq bar-part 'down)
(read-event)
(scroll-up 1)))))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-09-01 15:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-01 13:52 Emacs does not scroll on Mac OS X Michael Tüxen
[not found] <mailman.1378.1062425274.29551.bug-gnu-emacs@gnu.org>
2003-09-01 15:45 ` Andrew Choi
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.