Function: scroll-bar-event-ratio

scroll-bar-event-ratio is a byte-compiled function defined in scroll-bar.el.gz.

Signature

(scroll-bar-event-ratio EVENT)

Documentation

Given a scroll bar event EVENT, return the scroll bar position as a ratio.

The value is a cons cell (PORTION . WHOLE) containing two integers whose ratio gives the event's vertical position in the scroll bar, with 0 referring to the top and 1 to the bottom.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/scroll-bar.el.gz
;;;; Utilities.

(defun scroll-bar-event-ratio (event)
  "Given a scroll bar event EVENT, return the scroll bar position as a ratio.
The value is a cons cell (PORTION . WHOLE) containing two integers
whose ratio gives the event's vertical position in the scroll bar, with 0
referring to the top and 1 to the bottom."
  (nth 2 event))