Function: hmouse-drag-diagonally
hmouse-drag-diagonally is a byte-compiled function defined in
hui-window.el.
Signature
(hmouse-drag-diagonally)
Documentation
Return non-nil iff last Action Key use was a diagonal drag in a single window.
If free variable assist-flag is non-nil, use Assist Key.
Value returned is nil if not a diagonal drag, or one of the
following symbols depending on the direction of the drag:
southeast, southwest, northwest, northeast.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(defun hmouse-drag-diagonally ()
"Return non-nil iff last Action Key use was a diagonal drag in a single window.
If free variable `assist-flag' is non-nil, use Assist Key.
Value returned is nil if not a diagonal drag, or one of the
following symbols depending on the direction of the drag:
southeast, southwest, northwest, northeast."
(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-diagonal-sensitivity)
(>= (- (max last-depress-y last-release-y)
(min last-depress-y last-release-y))
hmouse-y-diagonal-sensitivity)
(cond
((< last-depress-x last-release-x)
(if (< last-depress-y last-release-y)
'southeast 'northeast))
(t (if (< last-depress-y last-release-y)
'southwest 'northwest)))))))