summaryrefslogtreecommitdiff
path: root/devdocs/elisp/motion-events.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/motion-events.html
new repository
Diffstat (limited to 'devdocs/elisp/motion-events.html')
-rw-r--r--devdocs/elisp/motion-events.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/devdocs/elisp/motion-events.html b/devdocs/elisp/motion-events.html
new file mode 100644
index 00000000..1618618e
--- /dev/null
+++ b/devdocs/elisp/motion-events.html
@@ -0,0 +1,10 @@
+ <h4 class="subsection">Motion Events</h4> <p>Emacs sometimes generates <em>mouse motion</em> events to describe motion of the mouse without any button activity. Mouse motion events are represented by lists that look like this: </p> <div class="example"> <pre class="example">(mouse-movement POSITION)
+</pre>
+</div> <p><var>position</var> is a mouse position list (see <a href="click-events">Click Events</a>), specifying the current position of the mouse cursor. As with the end-position of a drag event, this position list may represent a location outside the boundaries of the initially selected frame, in which case the list contains that frame in place of a window. </p> <p>The special form <code>track-mouse</code> enables generation of motion events within its body. Outside of <code>track-mouse</code> forms, Emacs does not generate events for mere motion of the mouse, and these events do not appear. See <a href="mouse-tracking">Mouse Tracking</a>. </p> <dl> <dt id="mouse-fine-grained-tracking">Variable: <strong>mouse-fine-grained-tracking</strong>
+</dt> <dd><p>When non-<code>nil</code>, mouse motion events are generated even for very small movements. Otherwise, motion events are not generated as long as the mouse cursor remains pointing to the same glyph in the text. </p></dd>
+</dl><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Motion-Events.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Motion-Events.html</a>
+ </p>
+</div>