Hi,<br><br>I&#39;ve just figured it out. It was because the modal handler for the change-frame operator (which I copied as a simple base to work off) was adding the handler to region instead of window.<br><br>Regards,<br>Joshua<br>
<br><div class="gmail_quote">On Sun, Nov 30, 2008 at 4:41 AM, Ton Roosendaal <span dir="ltr">&lt;<a href="mailto:ton@blender.org">ton@blender.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
Iff used properly and according design (modal handler should be on<br>
screen/window level) the events should get properly handled. I suspect<br>
this is caused by the recently added &quot;modalops&quot; list, which should be<br>
replaced. Will check it now.<br>
<br>
-Ton-<br>
<br>
------------------------------------------------------------------------<br>
Ton Roosendaal &nbsp;Blender Foundation &nbsp; <a href="mailto:ton@blender.org">ton@blender.org</a> &nbsp; &nbsp;<a href="http://www.blender.org" target="_blank">www.blender.org</a><br>
Blender Institute BV &nbsp;Entrepotdok 57A &nbsp;1018AD Amsterdam The Netherlands<br>
<div><div></div><div class="Wj3C7c"><br>
On 29 Nov, 2008, at 12:28, Joshua Leung wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; While working on view panning operator for View2D API, I noticed that<br>
&gt; if the mouse leaves the current region/area, the events stop being<br>
&gt; sent to the modal handler, but when the mouse returns, the operator is<br>
&gt; still running (even if the mousebutton that needed to be held down is<br>
&gt; no longer held-down). This can be seen with the change-frame thing in<br>
&gt; the timeline view too.<br>
&gt;<br>
&gt; I&#39;m wondering if this is something that was something that wasn&#39;t<br>
&gt; accounted for in the original design, or whether this is something<br>
&gt; that operators which need this will have to deal with themselves. This<br>
&gt; affects practically all modal operators which involve mouse movement +<br>
&gt; holding mousebutton/button(s) down. Perhaps I&#39;m overlooking some<br>
&gt; aspect of this system again?<br>
&gt;<br>
&gt; Regards,<br>
&gt; Joshua<br>
</div></div>&gt; _______________________________________________<br>
&gt; Bf-taskforce25 mailing list<br>
&gt; <a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
&gt; <a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
<br>
_______________________________________________<br>
Bf-taskforce25 mailing list<br>
<a href="mailto:Bf-taskforce25@blender.org">Bf-taskforce25@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-taskforce25" target="_blank">http://lists.blender.org/mailman/listinfo/bf-taskforce25</a><br>
</blockquote></div><br>