<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_Frame_StopMovingOrSizing</id>
	<title>WoW:API Frame StopMovingOrSizing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://addonstudio.org/mw1/index.php?action=history&amp;feed=atom&amp;title=WoW%3AAPI_Frame_StopMovingOrSizing"/>
	<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;action=history"/>
	<updated>2026-04-22T17:23:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;diff=18589&amp;oldid=prev</id>
		<title>Move page script: Move page script moved page API Frame StopMovingOrSizing to WoW:API Frame StopMovingOrSizing without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;diff=18589&amp;oldid=prev"/>
		<updated>2023-08-15T04:45:36Z</updated>

		<summary type="html">&lt;p&gt;Move page script moved page &lt;a href=&quot;/wiki/WoW:API_Frame_StopMovingOrSizing&quot; title=&quot;WoW:API Frame StopMovingOrSizing&quot;&gt;API Frame StopMovingOrSizing&lt;/a&gt; to &lt;a href=&quot;/wiki/WoW:API_Frame_StopMovingOrSizing&quot; title=&quot;WoW:API Frame StopMovingOrSizing&quot;&gt;API Frame StopMovingOrSizing&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:45, 15 August 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-18588:rev-18589 --&gt;
&lt;/table&gt;</summary>
		<author><name>Move page script</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;diff=18588&amp;oldid=prev</id>
		<title>Bear at 05:11, 15 February 2015</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;diff=18588&amp;oldid=prev"/>
		<updated>2015-02-15T05:11:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 05:11, 15 February 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{widgetmethod}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{widgetmethod}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stops a frame movement or resize that was started with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartMoving|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartMoving&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;or &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartSizing|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartSizing&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Stops a frame movement or resize that was started with &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartMoving|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;() or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartSizing|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  obj:StopMovingOrSizing()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  obj:StopMovingOrSizing()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l26&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Stops the frame-based object from moving or resizing in relation to where the mouse is being moved -- this would have been started with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartMoving|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartMoving&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;or &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartSizing|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartSizing&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Stops the frame-based object from moving or resizing in relation to where the mouse is being moved -- this would have been started with &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartMoving|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;() or &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartSizing|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;RegisterForDrag|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;RegisterForDrag&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;and the &amp;lt;OnDragStart&amp;gt;...&amp;lt;/OnDragStart&amp;gt; event to allow your frame-based object to be moved or resized by the user.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;RegisterForDrag|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;() and the &amp;lt;OnDragStart&amp;gt;...&amp;lt;/OnDragStart&amp;gt; event to allow your frame-based object to be moved or resized by the user.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use this function inside the &amp;lt;OnDragStop&amp;gt;...&amp;lt;/OnDragStop&amp;gt; XML section to stop the moving or resizing process.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*Use this function inside the &amp;lt;OnDragStop&amp;gt;...&amp;lt;/OnDragStop&amp;gt; XML section to stop the moving or resizing process.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*For pixel-precise movements, you should instead use &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;EnableMouse|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;EnableMouse&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;and the &amp;lt;OnMouseDown&amp;gt;...&amp;lt;/OnMouseDown&amp;gt; and &amp;lt;OnMouseUp&amp;gt;...&amp;lt;/OnMouseUp&amp;gt; events (and probably also the &amp;lt;OnHide&amp;gt;...&amp;lt;/OnHide&amp;gt; event).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*For pixel-precise movements, you should instead use &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;EnableMouse|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;() and the &amp;lt;OnMouseDown&amp;gt;...&amp;lt;/OnMouseDown&amp;gt; and &amp;lt;OnMouseUp&amp;gt;...&amp;lt;/OnMouseUp&amp;gt; events (and probably also the &amp;lt;OnHide&amp;gt;...&amp;lt;/OnHide&amp;gt; event).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&amp;#039;&amp;#039;Notes&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;&amp;#039;&amp;#039;Notes&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*If the frame becomes stuck by any cause (see [[API SetClampedToScreen|SetClampedToScreen()]]), the mouse and the frame will go out-of-sync.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*If the frame becomes stuck by any cause (see [[API SetClampedToScreen|SetClampedToScreen()]]), the mouse and the frame will go out-of-sync.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*This function together with &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartMoving|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartMoving&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/del&gt;exhibit some &amp;quot;special&amp;quot; behavior that can cause problems when used with frames that are not anchored to UIParent (or some other full-screen frame).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*This function together with &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartMoving|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;() exhibit some &amp;quot;special&amp;quot; behavior that can cause problems when used with frames that are not anchored to UIParent (or some other full-screen frame).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Immediately upon calling &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartMoving|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartMoving&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;, the frame will be de-anchored from any other frame it was previously anchored to, and instead anchored to the screen.  For example, if MyFrame&amp;#039;s TOPLEFT is anchored to MyParent&amp;#039;s TOPLEFT at (5,-5), and MyParent&amp;#039;s TOPLEFT is anchored to UIParent&amp;#039;s TOPLEFT at (100,-100), then MyFrame:[[API StartMoving|StartMoving()]] immediately re-anchors MyFrame&amp;#039;s TOPLEFT to the screen&amp;#039;s (nil anchor) TOPLEFT at (105,-105).  The original anchor frame (MyParent) and offset will not be restored by StopMovingOrSizing().&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Immediately upon calling &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartMoving|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;(), the frame will be de-anchored from any other frame it was previously anchored to, and instead anchored to the screen.  For example, if MyFrame&amp;#039;s TOPLEFT is anchored to MyParent&amp;#039;s TOPLEFT at (5,-5), and MyParent&amp;#039;s TOPLEFT is anchored to UIParent&amp;#039;s TOPLEFT at (100,-100), then MyFrame:[[API StartMoving|StartMoving()]] immediately re-anchors MyFrame&amp;#039;s TOPLEFT to the screen&amp;#039;s (nil anchor) TOPLEFT at (105,-105).  The original anchor frame (MyParent) and offset will not be restored by StopMovingOrSizing().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Furthermore, StopMovingOrSizing() will identify the closest anchor point on the screen and re-anchor the frame once again to that closest point.  For example, if MyFrame is dragged to (50,-600) (still relative to the screen), and has a height of 25, then MyFrame:StopMovingOrSizing() immediately re-anchors MyFrame&amp;#039;s BOTTOMLEFT to the screen&amp;#039;s BOTTOMLEFT at (50,143) (recall that the WoW UI always has height 768 regardless of resolution).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**Furthermore, StopMovingOrSizing() will identify the closest anchor point on the screen and re-anchor the frame once again to that closest point.  For example, if MyFrame is dragged to (50,-600) (still relative to the screen), and has a height of 25, then MyFrame:StopMovingOrSizing() immediately re-anchors MyFrame&amp;#039;s BOTTOMLEFT to the screen&amp;#039;s BOTTOMLEFT at (50,143) (recall that the WoW UI always has height 768 regardless of resolution).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**There does not appear to be any way to disable either of these behaviors.  If you want your frame to end up anchored to the same frame it was anchored to initially, one way to work around this issue is to store the result of [[API GetPoint|GetPoint()]] three times:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**There does not appear to be any way to disable either of these behaviors.  If you want your frame to end up anchored to the same frame it was anchored to initially, one way to work around this issue is to store the result of [[API GetPoint|GetPoint()]] three times:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** immediately before &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartMoving|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartMoving&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;, to get the initial offset relative-to-frame&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** immediately before &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartMoving|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;(), to get the initial offset relative-to-frame&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** immediately after &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;StartMoving|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;StartMoving&lt;/del&gt;()&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]]&lt;/del&gt;, to get the initial offset relative-to-screen&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** immediately after &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;StartMoving|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;(), to get the initial offset relative-to-screen&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** immediately before StopMovingOrSizing(), to get the final offset relative-to-screen, but before the anchor points are (potentially) changed&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*** immediately before StopMovingOrSizing(), to get the final offset relative-to-screen, but before the anchor points are (potentially) changed&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**This way, you can subtract the second measurement from the third to get a &amp;quot;delta&amp;quot; (x,y) for the total movement, and then add that to the first measurement to get the appropriate final offset relative-to-frame.  You can then manually re-anchor your frame to its appropriate parent, at its new offset -- but you must do so after calling StopMovingOrSizing() &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(&lt;/del&gt;and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[API &lt;/del&gt;ClearAllPoints|&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;ClearAllPoints&lt;/del&gt;(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;)]]&lt;/del&gt;).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**This way, you can subtract the second measurement from the third to get a &amp;quot;delta&amp;quot; (x,y) for the total movement, and then add that to the first measurement to get the appropriate final offset relative-to-frame.  You can then manually re-anchor your frame to its appropriate parent, at its new offset -- but you must do so after calling StopMovingOrSizing()&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, &lt;/ins&gt;and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{api|Frame:&lt;/ins&gt;ClearAllPoints|&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;t=w}}&lt;/ins&gt;().&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key addonstu_asmw2:diff::1.12:old-18587:rev-18588 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bear</name></author>
	</entry>
	<entry>
		<id>https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;diff=18587&amp;oldid=prev</id>
		<title>WoWWiki&gt;Taleden: article did not exist before; copied and tweaked the content from StartMoving()</title>
		<link rel="alternate" type="text/html" href="https://addonstudio.org/mw1/index.php?title=WoW:API_Frame_StopMovingOrSizing&amp;diff=18587&amp;oldid=prev"/>
		<updated>2008-12-12T02:00:13Z</updated>

		<summary type="html">&lt;p&gt;article did not exist before; copied and tweaked the content from StartMoving()&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{widgetmethod}}&lt;br /&gt;
&lt;br /&gt;
Stops a frame movement or resize that was started with [[API StartMoving|StartMoving()]] or [[API StartSizing|StartSizing()]].&lt;br /&gt;
&lt;br /&gt;
 obj:StopMovingOrSizing()&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Arguments&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:;nil&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Returns&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
:;nil&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Example&amp;#039;&amp;#039;&lt;br /&gt;
 myAddonFrame:StopMovingOrSizing();&lt;br /&gt;
&lt;br /&gt;
;&amp;#039;&amp;#039;Result&amp;#039;&amp;#039;&lt;br /&gt;
:The frame named &amp;#039;myAddonFrame&amp;#039; would stop moving or resizing in relation to where the mouse is being moved.&lt;br /&gt;
:The frame&amp;#039;s anchor will be changed; see below for details.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
;&amp;#039;&amp;#039;Description&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
*Stops the frame-based object from moving or resizing in relation to where the mouse is being moved -- this would have been started with [[API StartMoving|StartMoving()]] or [[API StartSizing|StartSizing()]].&lt;br /&gt;
*Use [[API RegisterForDrag|RegisterForDrag()]] and the &amp;lt;OnDragStart&amp;gt;...&amp;lt;/OnDragStart&amp;gt; event to allow your frame-based object to be moved or resized by the user.&lt;br /&gt;
*Use this function inside the &amp;lt;OnDragStop&amp;gt;...&amp;lt;/OnDragStop&amp;gt; XML section to stop the moving or resizing process.&lt;br /&gt;
*For pixel-precise movements, you should instead use [[API EnableMouse|EnableMouse()]] and the &amp;lt;OnMouseDown&amp;gt;...&amp;lt;/OnMouseDown&amp;gt; and &amp;lt;OnMouseUp&amp;gt;...&amp;lt;/OnMouseUp&amp;gt; events (and probably also the &amp;lt;OnHide&amp;gt;...&amp;lt;/OnHide&amp;gt; event).&lt;br /&gt;
&lt;br /&gt;
;&amp;#039;&amp;#039;Notes&amp;#039;&amp;#039;&lt;br /&gt;
*If the frame becomes stuck by any cause (see [[API SetClampedToScreen|SetClampedToScreen()]]), the mouse and the frame will go out-of-sync.&lt;br /&gt;
*This function together with [[API StartMoving|StartMoving()]] exhibit some &amp;quot;special&amp;quot; behavior that can cause problems when used with frames that are not anchored to UIParent (or some other full-screen frame).&lt;br /&gt;
**Immediately upon calling [[API StartMoving|StartMoving()]], the frame will be de-anchored from any other frame it was previously anchored to, and instead anchored to the screen.  For example, if MyFrame&amp;#039;s TOPLEFT is anchored to MyParent&amp;#039;s TOPLEFT at (5,-5), and MyParent&amp;#039;s TOPLEFT is anchored to UIParent&amp;#039;s TOPLEFT at (100,-100), then MyFrame:[[API StartMoving|StartMoving()]] immediately re-anchors MyFrame&amp;#039;s TOPLEFT to the screen&amp;#039;s (nil anchor) TOPLEFT at (105,-105).  The original anchor frame (MyParent) and offset will not be restored by StopMovingOrSizing().&lt;br /&gt;
**Furthermore, StopMovingOrSizing() will identify the closest anchor point on the screen and re-anchor the frame once again to that closest point.  For example, if MyFrame is dragged to (50,-600) (still relative to the screen), and has a height of 25, then MyFrame:StopMovingOrSizing() immediately re-anchors MyFrame&amp;#039;s BOTTOMLEFT to the screen&amp;#039;s BOTTOMLEFT at (50,143) (recall that the WoW UI always has height 768 regardless of resolution).&lt;br /&gt;
**There does not appear to be any way to disable either of these behaviors.  If you want your frame to end up anchored to the same frame it was anchored to initially, one way to work around this issue is to store the result of [[API GetPoint|GetPoint()]] three times:&lt;br /&gt;
*** immediately before [[API StartMoving|StartMoving()]], to get the initial offset relative-to-frame&lt;br /&gt;
*** immediately after [[API StartMoving|StartMoving()]], to get the initial offset relative-to-screen&lt;br /&gt;
*** immediately before StopMovingOrSizing(), to get the final offset relative-to-screen, but before the anchor points are (potentially) changed&lt;br /&gt;
**This way, you can subtract the second measurement from the third to get a &amp;quot;delta&amp;quot; (x,y) for the total movement, and then add that to the first measurement to get the appropriate final offset relative-to-frame.  You can then manually re-anchor your frame to its appropriate parent, at its new offset -- but you must do so after calling StopMovingOrSizing() (and [[API ClearAllPoints|ClearAllPoints()]]).&lt;/div&gt;</summary>
		<author><name>WoWWiki&gt;Taleden</name></author>
	</entry>
</feed>