Function: hmouse-drag-horizontally
hmouse-drag-horizontally is a byte-compiled function defined in
hui-window.el.
Signature
(hmouse-drag-horizontally)
Documentation
Return non-nil iff last Action Key use was a horizontal drag in a single window.
If free variable assist-flag is non-nil, use Assist Key.
Value returned is nil if not a horizontal drag, 'left if drag
moved left or 'right otherwise.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun hmouse-drag-horizontally ()
"Return non-nil iff last Action Key use was a horizontal drag in a single window.
If free variable `assist-flag' is non-nil, use Assist Key.
Value returned is nil if not a horizontal drag, \\='left if drag
moved left or \\='right otherwise."
(when (hmouse-press-release-same-window)
(let ((last-depress-x) (last-release-x)
(last-depress-y) (last-release-y))
(if assist-flag
(setq last-depress-x (hmouse-x-coord assist-key-depress-args)
last-release-x (hmouse-x-coord assist-key-release-args)
last-depress-y (hmouse-y-coord assist-key-depress-args)
last-release-y (hmouse-y-coord assist-key-release-args))
(setq last-depress-x (hmouse-x-coord action-key-depress-args)
last-release-x (hmouse-x-coord action-key-release-args)
last-depress-y (hmouse-y-coord action-key-depress-args)
last-release-y (hmouse-y-coord action-key-release-args)))
(and last-depress-x last-release-x last-depress-y last-release-y
(>= (- (max last-depress-x last-release-x)
(min last-depress-x last-release-x))
hmouse-x-drag-sensitivity)
;; Don't want to register vertical drags here, so ensure any
;; vertical movement was less than the vertical drag sensitivity.
(< (- (max last-depress-y last-release-y)
(min last-depress-y last-release-y))
hmouse-y-drag-sensitivity)
(if (< last-depress-x last-release-x) 'right 'left)))))