Not approved, mouse-events are broken.

To reproduce just move the mouse over the red view.
Expected:
- onmouseover:0

Actual:
- onmouseover:0
- onmouseout:0
- onmouseover:1

<canvas debug="true">
<view width="100" height="100" bgcolor="red">
<attribute name="over" value="0" type="number"/>
<attribute name="out" value="0" type="number"/>
<handler name="onmouseover">
            Debug.write("onmouseover:" + this.over++);
            v.setAttribute("visible", true);
</handler>
<handler name="onmouseout">
            Debug.write("onmouseout:" + this.out++);
            v.setAttribute("visible", false);
</handler>
<view name="v" width="100" height="100" visible="false">
<contextmenu/>
</view>
</view>
</canvas>

On 4/10/2010 12:52 AM, Max Carlson wrote:
Change 20100409-maxcarlson-K by maxcarl...@bank on 2010-04-09 15:48:08 PDT
     in /Users/maxcarlson/openlaszlo/trunk-clean
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: Fix context menus when using compiled resources

Bugs Fixed: LPP-8815 - BJY-57383-548: context menu not shown when compiling to 
swf9

Technical Reviewer: hminsky
QA Reviewer: ptw

Details: Instead of using the LzSprite's graphics context to draw a hidden 
background, create a new, separate sprite to ensure any bitmap resources (which 
eat clicks) are covered.  This makes the context menu work as it should.

Tests: See LPP-8815

Files:
M       WEB-INF/lps/lfc/kernel/swf9/LzSprite.as

Changeset: 
http://svn.openlaszlo.org/openlaszlo/patches/20100409-maxcarlson-K.tar


Reply via email to