Function: touch-screen-scroll
touch-screen-scroll is an interactive and byte-compiled function
defined in touch-screen.el.gz.
Signature
(touch-screen-scroll EVENT)
Documentation
Scroll the window within EVENT, a touchscreen-scroll event.
If touch-screen-precision-scroll, scroll the window vertically
by the number of pixels specified within that event. Else,
scroll the window by one line for every
window-default-line-height pixels worth of movement.
If EVENT also specifies horizontal motion and no significant amount of vertical scrolling has taken place, also scroll the window horizontally in conjunction with the number of pixels in the event.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/touch-screen.el.gz
(defun touch-screen-scroll (event)
"Scroll the window within EVENT, a `touchscreen-scroll' event.
If `touch-screen-precision-scroll', scroll the window vertically
by the number of pixels specified within that event. Else,
scroll the window by one line for every
`window-default-line-height' pixels worth of movement.
If EVENT also specifies horizontal motion and no significant
amount of vertical scrolling has taken place, also scroll the
window horizontally in conjunction with the number of pixels in
the event."
(interactive "e")
(let ((window (nth 1 event))
(dx (nth 2 event))
(dy (nth 3 event)))
(with-selected-window window
(touch-screen-handle-scroll dx dy))))