[Laszlo-dev] For Review: Change 20081115-hqm-l Summary: use hitArea/mouseEnabled hack on all LzSprites

Henry Minsky henry.minsky at gmail.com
Sat Nov 15 10:54:16 PST 2008


Change 20081115-hqm-l by hqm at badtzmaru.home on 2008-11-15 13:49:21 EST
     in /Users/hqm/openlaszlo/trunk5
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: use hitArea/mouseEnabled hack on all LzSprites

New Features:

Bugs Fixed: LPP-7349

Technical Reviewer: andre
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

+ I have just set mouseEnabled=true on all LzSprites, and keep the
hitArea = emptySprite on all LzSprite by default.

+ When clickable is enabled, the hitArea is removed, and the
SimpleButton is used to catch mouse clicks.

When clickable is disabled, the hitArea=emptySprite is set again.

I don't think this has any noticable performance implications, but I'm
not sure.

Tests:

test case from bug report
lzpix works (with contextmenu attached to <photo> class)
test/contextmenu/lpp-6980.lzx
test/contextmenu/over-input.lzx


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


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20081115-hqm-l.tar


More information about the Laszlo-dev mailing list