|
|
|
Author: max
Date: 2007-08-17 17:59:23 -0700 (Fri, 17 Aug 2007) New Revision: 6141 Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as Log: Change 20070817-maxcarlson-c by maxcarlson@plastik on 2007-08-17 17:26:25 PDT in /Users/maxcarlson/openlaszlo/wafflecone for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone Summary: UPDATED: Fix swf mouse coordinate rounding issue New Features: Bugs Fixed: Technical Reviewer: promanik QA Reviewer: jcrowley Doc Reviewer: (pending) Documentation: Release Notes: Details: LzSprite.as - Round off coordinates in getMouse() Tests: See Modified: openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as =================================================================== --- openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-08-18 00:51:31 UTC (rev 6140) +++ openlaszlo/branches/wafflecone/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2007-08-18 00:59:23 UTC (rev 6141) @@ -930,7 +930,7 @@ */ LzSprite.prototype.getMouse = function() { if ( ! this.__LZmovieClipRef ) { this.makeContainerResource() }; - return {x: this.__LZmovieClipRef._xmouse, y: this.__LZmovieClipRef._ymouse} + return {x: Math.round(this.__LZmovieClipRef._xmouse), y: Math.round(this.__LZmovieClipRef._ymouse)} } /** _______________________________________________ Laszlo-checkins mailing list Laszlo-checkins@openlaszlo.org http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins (wafflecone branch build r6153)
Testcase works. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<canvas debug="true">
<window x="200" y="200">
<handler name="onx" args="x">
Debug.write('x', x)
</handler>
<handler name="ony" args="y">
Debug.write('y', y)
</handler>
<text>Click here</text>
</window>
</canvas>