Function: xwidget-webkit-scroll-backward
xwidget-webkit-scroll-backward is an interactive and byte-compiled
function defined in xwidget.el.gz.
Signature
(xwidget-webkit-scroll-backward &optional N)
Documentation
Scroll webkit back by N chars.
If the widget is larger than the window, hscroll backwards by N
columns instead. The width of char is calculated with
window-font-width. If N is omitted or nil, scroll backwards by
one char.
Probably introduced at or before Emacs version 25.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/xwidget.el.gz
(defun xwidget-webkit-scroll-backward (&optional n)
"Scroll webkit back by N chars.
If the widget is larger than the window, hscroll backwards by N
columns instead. The width of char is calculated with
`window-font-width'. If N is omitted or nil, scroll backwards by
one char."
(interactive "p" xwidget-webkit-mode)
(let ((session (xwidget-webkit-current-session)))
(if (and (> (- (aref (xwidget-info session) 2)
(window-text-width nil t))
(window-font-width))
(> (window-hscroll) 0))
(set-window-hscroll nil (- (window-hscroll) n))
(xwidget-webkit-execute-script session
(format "window.scrollBy(-%d, 0);"
(* n (window-font-width)))))))