Change 20100729-maxcarlson-i by maxcarl...@friendly on 2010-07-29 10:29:56 PDT
in /Users/maxcarlson/openlaszlo/trunk-clean
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Simplify click handling in DHTML
Bugs Fixed: LPP-8470 - Simplify IE 7-specific mousehandling logic, LPP-9250 -
DHMTL: Optimize mouse events
Technical Reviewer: ptw
QA Reviewer: hminsky
Details: Move LzSprite.prototype.__setClickable() to LzSprite.__setClickable(),
use to register click events in the root click sprite only. Change
__clickDispatcher() to use the target of the event to dispatch to the
appropriate sprite, but don't send events for the canvas/root sprite itself.
Remove this.quirks.ie_mouse_events workarounds for IE since they're no longer
needed. Add an option to __findParents to only find a single item, and use it
in __isMouseOver(). Update setWidth/Height to set the size of the canvas click
div so it catches everything.
Tests: LPP-6141, LPP-9107, LPP-8445 and test/lfc/legals/keyboardandmouse.lzx
pass across all browsers.
Files:
M WEB-INF/lps/lfc/kernel/dhtml/LzSprite.js
Changeset:
http://svn.openlaszlo.org/openlaszlo/patches/20100729-maxcarlson-i.tar