* lisp/touch-screen.el (touch-screen-inhibit-drag): Fix typo.
authorPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 04:27:08 +0000 (12:27 +0800)
committerPo Lu <luangruo@yahoo.com>
Tue, 25 Jun 2024 04:27:08 +0000 (12:27 +0800)
lisp/touch-screen.el

index 792e1be5ff9992eab4b8b806094d1688ffdbb2b1..aa4bded897541c5630c17f7edc61a6f5c772b553 100644 (file)
@@ -2065,7 +2065,7 @@ sent until the touch sequence currently being translated ends.
 Must be called from a command bound to a `touchscreen-hold' or
 `touchscreen-drag' event."
   (let* ((tool touch-screen-current-tool)
-         (current-what (nth 4 tool)))
+         (current-what (nth 3 tool)))
     ;; Signal an error if no hold and no drag is in progress.
     (when (and (not (eq current-what 'hold))
                (not (eq current-what 'drag)))