<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Finding out the mouse click position on a canvas with Javascript</title>
	<atom:link href="http://eli.thegreenplace.net/2010/02/13/finding-out-the-mouse-click-position-on-a-canvas-with-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://eli.thegreenplace.net/2010/02/13/finding-out-the-mouse-click-position-on-a-canvas-with-javascript/</link>
	<description>Eli Bendersky's personal website</description>
	<lastBuildDate>Wed, 01 Sep 2010 06:13:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: SaturnPolly</title>
		<link>http://eli.thegreenplace.net/2010/02/13/finding-out-the-mouse-click-position-on-a-canvas-with-javascript/comment-page-1/#comment-274626</link>
		<dc:creator>SaturnPolly</dc:creator>
		<pubDate>Sun, 07 Mar 2010 22:36:03 +0000</pubDate>
		<guid isPermaLink="false">http://eli.thegreenplace.net/?p=2082#comment-274626</guid>
		<description>A short note on offsetLeft/offsetTop: Unless the canvas itself is moved (which should rarely be the case) the offsets of the canvas should be cached, because reading the offsets of an element causes the browser to do a reflow (http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/). It&#039;s not a big problem in combination with click-events, but sooner or later somebody will come along, c&amp;p this and then use it in combination with &#039;mousemove&#039;. ;)</description>
		<content:encoded><![CDATA[<p>A short note on offsetLeft/offsetTop: Unless the canvas itself is moved (which should rarely be the case) the offsets of the canvas should be cached, because reading the offsets of an element causes the browser to do a reflow (<a href="http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/" rel="nofollow">http://www.phpied.com/rendering-repaint-reflowrelayout-restyle/</a>). It&#8217;s not a big problem in combination with click-events, but sooner or later somebody will come along, c&amp;p this and then use it in combination with &#8216;mousemove&#8217;. <img src='http://eli.thegreenplace.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>
