]> git.eshelyaron.com Git - emacs.git/commitdiff
Make org-mouse compatible with touch screen event emulation
authorPo Lu <luangruo@yahoo.com>
Wed, 23 Aug 2023 01:56:35 +0000 (09:56 +0800)
committerPo Lu <luangruo@yahoo.com>
Wed, 23 Aug 2023 01:56:35 +0000 (09:56 +0800)
* lisp/org/org-mouse.el (org-mouse-down-mouse): Characterize as
an `ignored-mouse-command'.

lisp/org/org-mouse.el

index e0671f3d7d5c29794e43811c2378f5a9a4258b06..9c9dfee51a171a7dd71bf000fd00aa36314567bb 100644 (file)
@@ -859,6 +859,10 @@ This means, between the beginning of line and the point."
               (org-mouse-in-region-p (posn-point (event-start event))))
     (mouse-drag-region event)))
 
+;; This function conflicts with touch screen gestures as it relays
+;; events to `mouse-drag-region'.
+(put 'org-mouse-down-mouse 'ignored-mouse-command t)
+
 (add-hook 'org-mode-hook
           (lambda ()
             (setq org-mouse-context-menu-function #'org-mouse-context-menu)