<?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: Quickfix to enable touch of EaselJS-DisplayObjects in CocoonJS</title>
	<atom:link href="http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/feed/" rel="self" type="application/rss+xml" />
	<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/</link>
	<description>apps, indie &#38; beyond</description>
	<lastBuildDate>Sun, 20 Oct 2019 13:54:00 +0000</lastBuildDate>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>By: nick</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-52430</link>
		<dc:creator><![CDATA[nick]]></dc:creator>
		<pubDate>Sat, 21 Feb 2015 00:24:00 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-52430</guid>
		<description><![CDATA[Hi. I&#039;m trying to use this and having no luck.
On iOS everything in cocoonjs works fine. On Android its firing events after touching anywhere on the stage. 
I&#039;m including the fix script after my easeljs one. 
I have createjs.Touch.enable(stage); enabled. 
I&#039;m using easeljs-0.7.1. 


 Is Android 4.1.1  just too old?]]></description>
		<content:encoded><![CDATA[<p>Hi. I&#8217;m trying to use this and having no luck.<br />
On iOS everything in cocoonjs works fine. On Android its firing events after touching anywhere on the stage.<br />
I&#8217;m including the fix script after my easeljs one.<br />
I have createjs.Touch.enable(stage); enabled.<br />
I&#8217;m using easeljs-0.7.1. </p>
<p> Is Android 4.1.1  just too old?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leandro</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-51570</link>
		<dc:creator><![CDATA[Leandro]]></dc:creator>
		<pubDate>Thu, 17 Jul 2014 08:28:33 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-51570</guid>
		<description><![CDATA[I cant get this fix work for me.  Doesnt work the touch event for button.Is this correct way to catch button click/touch event?:
play.addEventListener(&quot;click&quot;, function(e)
					{
						console.log(&quot;click&quot;);
					});

When I click on button catches the event of stage touch.]]></description>
		<content:encoded><![CDATA[<p>I cant get this fix work for me.  Doesnt work the touch event for button.Is this correct way to catch button click/touch event?:<br />
play.addEventListener(&#8220;click&#8221;, function(e)<br />
					{<br />
						console.log(&#8220;click&#8221;);<br />
					});</p>
<p>When I click on button catches the event of stage touch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheManuz</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-46359</link>
		<dc:creator><![CDATA[TheManuz]]></dc:creator>
		<pubDate>Mon, 26 May 2014 10:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-46359</guid>
		<description><![CDATA[Thank you very much, it was simple and worked fine!]]></description>
		<content:encoded><![CDATA[<p>Thank you very much, it was simple and worked fine!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-45706</link>
		<dc:creator><![CDATA[Jimmy]]></dc:creator>
		<pubDate>Wed, 21 May 2014 10:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-45706</guid>
		<description><![CDATA[This fix doesn&#039;t seem to work with the cdn / minified version of CreateJS?]]></description>
		<content:encoded><![CDATA[<p>This fix doesn&#8217;t seem to work with the cdn / minified version of CreateJS?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bitrogue</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-40415</link>
		<dc:creator><![CDATA[Bitrogue]]></dc:creator>
		<pubDate>Sun, 20 Apr 2014 16:27:30 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-40415</guid>
		<description><![CDATA[I&#039;m interested! I do not own a device that would have this problem for debugging (have to rely on feedback from released app) and any kind of quickfix would be awesome as do not have need for complicated touch detection (only rectangles).]]></description>
		<content:encoded><![CDATA[<p>I&#8217;m interested! I do not own a device that would have this problem for debugging (have to rely on feedback from released app) and any kind of quickfix would be awesome as do not have need for complicated touch detection (only rectangles).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Wong</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-40112</link>
		<dc:creator><![CDATA[Vince Wong]]></dc:creator>
		<pubDate>Sat, 19 Apr 2014 08:10:52 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-40112</guid>
		<description><![CDATA[P.S. The &quot;window.onload = fixCocoonEaselJSStageTouch&quot; at the bottom of the touch fix should probably be replaced with &quot;window.addEventListener(&#039;load&#039;, fixCocoonEaselJSStageTouch);&quot;. This would prevent overwriting of any existing global event handler, and also prevent the risk of being overwritten by another global event handler!]]></description>
		<content:encoded><![CDATA[<p>P.S. The &#8220;window.onload = fixCocoonEaselJSStageTouch&#8221; at the bottom of the touch fix should probably be replaced with &#8220;window.addEventListener(&#8216;load&#8217;, fixCocoonEaselJSStageTouch);&#8221;. This would prevent overwriting of any existing global event handler, and also prevent the risk of being overwritten by another global event handler!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Wong</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-40110</link>
		<dc:creator><![CDATA[Vince Wong]]></dc:creator>
		<pubDate>Sat, 19 Apr 2014 08:07:22 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-40110</guid>
		<description><![CDATA[I&#039;ve had a similar problem: on Android 4.4.2, hit detection for touch events works fine; however, on Android 4.0.3, I&#039;m getting unpredictable results. 

Sometimes, I have the problem you reported where touch events are firing on display objects that aren&#039;t beneath the touch location (some object always seems to be hit, and it doesn&#039;t seem related to its position relative to the touch location). However, the majority of times I&#039;ve tried it on Android 4.0.3, a touch event never fires, even if an object appears beneath the touch location.

I&#039;ve traced the issue to createjs.Container.prototype._getObjectsUnderPoint (Stage inherits from Container). Without the above touch fix, x and y passed into this function are always 0, so the touch fix is required. In the case where no events fire, _getObjectsUnderPoint seems to be returning null always. I can only *assume* that in the case where events are firing erroneously, the function is returning objects it shouldn&#039;t be (false positives).

I&#039;ve further traced this to the way the function performs hit detection i.e. by drawing each child to a canvas (with appropriate transform matrix), and then testing whether the alpha channel is &gt; 1 (see _testHit). For some reason, this is going wrong on some Android versions. I&#039;ve not been able to determine why, so my rather unsatisfactory workaround is to replace this hit test mechanism with a faster, but more rudimentary hit test where I assume each child display object is a rectangle. I obviously have to take scaling and registration points into account. I can post this somewhere if you&#039;re interested?]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve had a similar problem: on Android 4.4.2, hit detection for touch events works fine; however, on Android 4.0.3, I&#8217;m getting unpredictable results. </p>
<p>Sometimes, I have the problem you reported where touch events are firing on display objects that aren&#8217;t beneath the touch location (some object always seems to be hit, and it doesn&#8217;t seem related to its position relative to the touch location). However, the majority of times I&#8217;ve tried it on Android 4.0.3, a touch event never fires, even if an object appears beneath the touch location.</p>
<p>I&#8217;ve traced the issue to createjs.Container.prototype._getObjectsUnderPoint (Stage inherits from Container). Without the above touch fix, x and y passed into this function are always 0, so the touch fix is required. In the case where no events fire, _getObjectsUnderPoint seems to be returning null always. I can only *assume* that in the case where events are firing erroneously, the function is returning objects it shouldn&#8217;t be (false positives).</p>
<p>I&#8217;ve further traced this to the way the function performs hit detection i.e. by drawing each child to a canvas (with appropriate transform matrix), and then testing whether the alpha channel is &gt; 1 (see _testHit). For some reason, this is going wrong on some Android versions. I&#8217;ve not been able to determine why, so my rather unsatisfactory workaround is to replace this hit test mechanism with a faster, but more rudimentary hit test where I assume each child display object is a rectangle. I obviously have to take scaling and registration points into account. I can post this somewhere if you&#8217;re interested?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bitrogue</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-39387</link>
		<dc:creator><![CDATA[Bitrogue]]></dc:creator>
		<pubDate>Tue, 15 Apr 2014 10:53:02 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-39387</guid>
		<description><![CDATA[Works fine on iOS and most Android devices, but some have rather interesting problem where my sprites with onclick function seem to take over the whole canvas?]]></description>
		<content:encoded><![CDATA[<p>Works fine on iOS and most Android devices, but some have rather interesting problem where my sprites with onclick function seem to take over the whole canvas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Wong</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-38061</link>
		<dc:creator><![CDATA[Vince Wong]]></dc:creator>
		<pubDate>Mon, 07 Apr 2014 10:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-38061</guid>
		<description><![CDATA[You&#039;ve been a massive help - thanks.]]></description>
		<content:encoded><![CDATA[<p>You&#8217;ve been a massive help &#8211; thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramesh</title>
		<link>http://indiegamr.com/quickfix-to-enable-touch-of-easeljs-displayobjects-in-cocoonjs/#comment-33053</link>
		<dc:creator><![CDATA[ramesh]]></dc:creator>
		<pubDate>Wed, 26 Feb 2014 11:59:50 +0000</pubDate>
		<guid isPermaLink="false">http://indiegamr.com/?p=594#comment-33053</guid>
		<description><![CDATA[EaselJS  Button events are not working with your code. it is working only stage events.]]></description>
		<content:encoded><![CDATA[<p>EaselJS  Button events are not working with your code. it is working only stage events.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
