We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923aad8 commit a5a3740Copy full SHA for a5a3740
lisp/touch-screen.el
@@ -2066,9 +2066,9 @@ Must be called from a command bound to a `touchscreen-hold' or
2066
`touchscreen-drag' event."
2067
(let* ((tool touch-screen-current-tool)
2068
(current-what (nth 4 tool)))
2069
- ;; Signal an error if no hold or drag is in progress.
2070
- (when (and (not (eq current-what 'hold)
2071
- (eq current-what 'drag)))
+ ;; Signal an error if no hold and no drag is in progress.
+ (when (and (not (eq current-what 'hold))
+ (not (eq current-what 'drag)))
2072
(error "Calling `touch-screen-inhibit-drag' outside hold or drag"))
2073
;; Now set the fourth element of tool to `command-inhibit'.
2074
(setcar (nthcdr 3 tool) 'command-inhibit)))
0 commit comments