Hi,<br><br>I'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"><<a href="mailto:ton@blender.org">ton@blender.org</a>></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 "modalops" list, which should be<br>
replaced. Will check it now.<br>
<br>
-Ton-<br>
<br>
------------------------------------------------------------------------<br>
Ton Roosendaal Blender Foundation <a href="mailto:ton@blender.org">ton@blender.org</a> <a href="http://www.blender.org" target="_blank">www.blender.org</a><br>
Blender Institute BV Entrepotdok 57A 1018AD Amsterdam The Netherlands<br>
<div><div></div><div class="Wj3C7c"><br>
On 29 Nov, 2008, at 12:28, Joshua Leung wrote:<br>
<br>
> Hi,<br>
><br>
> While working on view panning operator for View2D API, I noticed that<br>
> if the mouse leaves the current region/area, the events stop being<br>
> sent to the modal handler, but when the mouse returns, the operator is<br>
> still running (even if the mousebutton that needed to be held down is<br>
> no longer held-down). This can be seen with the change-frame thing in<br>
> the timeline view too.<br>
><br>
> I'm wondering if this is something that was something that wasn't<br>
> accounted for in the original design, or whether this is something<br>
> that operators which need this will have to deal with themselves. This<br>
> affects practically all modal operators which involve mouse movement +<br>
> holding mousebutton/button(s) down. Perhaps I'm overlooking some<br>
> aspect of this system again?<br>
><br>
> Regards,<br>
> Joshua<br>
</div></div>> _______________________________________________<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>
<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>