<?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: iScroll v4.1.3 introduces performance mode</title>
	<atom:link href="http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/feed" rel="self" type="application/rss+xml" />
	<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode</link>
	<description>Web and mobile development</description>
	<lastBuildDate>Thu, 18 Apr 2013 09:52:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
	<item>
		<title>By: Robin Klein Schiphorst</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-27300</link>
		<dc:creator>Robin Klein Schiphorst</dc:creator>
		<pubDate>Tue, 18 Sep 2012 13:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-27300</guid>
		<description><![CDATA[I was wondering if there is a way to check if it is currently being dragged and not clicked. But cause i have some jquery who checks if the list item is being clicked, but it is also activated when being dragged.

Very nice script, good work also on the other ones.]]></description>
		<content:encoded><![CDATA[<p>I was wondering if there is a way to check if it is currently being dragged and not clicked. But cause i have some jquery who checks if the list item is being clicked, but it is also activated when being dragged.</p>
<p>Very nice script, good work also on the other ones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: erik</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-26592</link>
		<dc:creator>erik</dc:creator>
		<pubDate>Thu, 21 Jun 2012 08:06:40 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-26592</guid>
		<description><![CDATA[@JSON MRAVA
i think that size of wrapper and elements to scroll should be knowed when initialize iscroll.
Try popolate list by json and then create iscroll istance.]]></description>
		<content:encoded><![CDATA[<p>@JSON MRAVA<br />
i think that size of wrapper and elements to scroll should be knowed when initialize iscroll.<br />
Try popolate list by json and then create iscroll istance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jSon Mrava</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-26265</link>
		<dc:creator>jSon Mrava</dc:creator>
		<pubDate>Wed, 02 May 2012 05:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-26265</guid>
		<description><![CDATA[Hi Mattheo,

I am using a jSon file tot populate my list. When populating hardcoded iscroll works fine. But not white à jSon file? 

Is this à known issue?]]></description>
		<content:encoded><![CDATA[<p>Hi Mattheo,</p>
<p>I am using a jSon file tot populate my list. When populating hardcoded iscroll works fine. But not white à jSon file? </p>
<p>Is this à known issue?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codenamezero</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-25979</link>
		<dc:creator>codenamezero</dc:creator>
		<pubDate>Thu, 08 Mar 2012 19:18:22 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-25979</guid>
		<description><![CDATA[DANG IT...!

div id=&quot;outerHorizontalSlider&quot; absolute
&gt;&gt; div id=&quot;wrapper1&quot; relative with scroller1
&gt;&gt; div id=&quot;wrapper2&quot; relative with scroller1
&gt;&gt; div id=&quot;wrapper3&quot; relative with scroller1
end div]]></description>
		<content:encoded><![CDATA[<p>DANG IT&#8230;!</p>
<p>div id=&#8221;outerHorizontalSlider&#8221; absolute<br />
&gt;&gt; div id=&#8221;wrapper1&#8243; relative with scroller1<br />
&gt;&gt; div id=&#8221;wrapper2&#8243; relative with scroller1<br />
&gt;&gt; div id=&#8221;wrapper3&#8243; relative with scroller1<br />
end div</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codenamezero</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-25978</link>
		<dc:creator>codenamezero</dc:creator>
		<pubDate>Thu, 08 Mar 2012 19:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-25978</guid>
		<description><![CDATA[A bit mess up but I tried to type:

with scroller1
with scroller1
with scroller1
]]></description>
		<content:encoded><![CDATA[<p>A bit mess up but I tried to type:</p>
<p>with scroller1<br />
with scroller1<br />
with scroller1</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: codenamezero</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-25977</link>
		<dc:creator>codenamezero</dc:creator>
		<pubDate>Thu, 08 Mar 2012 19:16:42 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-25977</guid>
		<description><![CDATA[I had problem using iScroll if I try to put multiple iScrolls inside a div. So picture something like this:

&lt;code&gt;

with scroller1
with scroller1
with scroller1

&lt;/code&gt;
The scroll won&#039;t work as your code will take:
&lt;code&gt;
that.wrapperH = that.wrapper.clientHeight
&lt;/code&gt;
and then
&lt;code&gt;
that.maxScrollY = that.wrapperH - that.scrollerH + that.minScrollY;
&lt;/code&gt;
maxScrollY will just become 0.


I did a quick hack and got multiple iScroller to work with position: relative.

In the constructor:

&lt;code&gt;
// hack to properly set it to relative
// that.wrapper.style.position was empty for some reason, had to use jQuery to fetch it
that.wrapper.style.position = $(that.wrapper).css(&#039;position&#039;); 
&lt;/code&gt;

Then inside the refresh:
&lt;code&gt;
if (that.wrapper.style.position == &#039;relative&#039;) {
   that.wrapperH = that.wrapper.parentNode.clientHeight &#124;&#124; 1;
} else {
   that.wrapperH = that.wrapper.clientHeight &#124;&#124; 1;
}
&lt;/code&gt;

This fixes the iScroller using position: relative.

Is kinda ugly hack, but works for what I am trying to do.]]></description>
		<content:encoded><![CDATA[<p>I had problem using iScroll if I try to put multiple iScrolls inside a div. So picture something like this:</p>
<p><code></p>
<p>with scroller1<br />
with scroller1<br />
with scroller1</p>
<p></code><br />
The scroll won&#8217;t work as your code will take:<br />
<code><br />
that.wrapperH = that.wrapper.clientHeight<br />
</code><br />
and then<br />
<code><br />
that.maxScrollY = that.wrapperH - that.scrollerH + that.minScrollY;<br />
</code><br />
maxScrollY will just become 0.</p>
<p>I did a quick hack and got multiple iScroller to work with position: relative.</p>
<p>In the constructor:</p>
<p><code><br />
// hack to properly set it to relative<br />
// that.wrapper.style.position was empty for some reason, had to use jQuery to fetch it<br />
that.wrapper.style.position = $(that.wrapper).css('position');<br />
</code></p>
<p>Then inside the refresh:<br />
<code><br />
if (that.wrapper.style.position == 'relative') {<br />
   that.wrapperH = that.wrapper.parentNode.clientHeight || 1;<br />
} else {<br />
   that.wrapperH = that.wrapper.clientHeight || 1;<br />
}<br />
</code></p>
<p>This fixes the iScroller using position: relative.</p>
<p>Is kinda ugly hack, but works for what I am trying to do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo Spinelli</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-24320</link>
		<dc:creator>Matteo Spinelli</dc:creator>
		<pubDate>Sat, 06 Aug 2011 07:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-24320</guid>
		<description><![CDATA[Hi Hunlon, thanks for your report. Would you share your modifications?]]></description>
		<content:encoded><![CDATA[<p>Hi Hunlon, thanks for your report. Would you share your modifications?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hunlon Sue</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-24319</link>
		<dc:creator>Hunlon Sue</dc:creator>
		<pubDate>Sat, 06 Aug 2011 06:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-24319</guid>
		<description><![CDATA[Hi Matteo,
I&#039;ve been working with iScroll4 for a few months incorporating it into my new iPad app.  I have found a few problems that affected its functionality in my app.  It took a while but I think i&#039;ve sorted out the issues as it affects me.  The problems relate to use of snap:&#039;element&#039; and the section that has errors is in the refresh() code.

&lt;b&gt;PageX and PageY arrays&lt;/b&gt;
The arrays built in the original code are only useful if you are using 1-D pages, ie just cells in a row or cells in a column.  On a page structured like a table everything gets messy.  What I did for my app was to build the arrays more carefully tracking the last x and y pos to determine when a new entry should be added to the array.

&lt;b&gt;Scale is not needed for the PageX and PageY calculations&lt;/b&gt;
Scale has already been applied before the refresh code is reached so when the call to querySelectorAll is made, the co-ordinates have already been adjusted for scale.  Therefore the &lt;code&gt;pos.x * that.scale;&lt;/code&gt; and &lt;code&gt;pos.y * that.scale;&lt;/code&gt; are not necessary.

&lt;b&gt;querySelectorAll doesn&#039;t return co-ordinates in the necessary frame of reference&lt;/b&gt;
I have found that I had to normalise the co-ordinates relative to the first element returned from querySelectorAll.

The changes I made to the code only address my requirements and may not be suitable for a general implementation.

Anyway, thanks for the work that you have put into this piece of code and hope that these comments help you.

Regards,
Hunlon.]]></description>
		<content:encoded><![CDATA[<p>Hi Matteo,<br />
I&#8217;ve been working with iScroll4 for a few months incorporating it into my new iPad app.  I have found a few problems that affected its functionality in my app.  It took a while but I think i&#8217;ve sorted out the issues as it affects me.  The problems relate to use of snap:&#8217;element&#8217; and the section that has errors is in the refresh() code.</p>
<p><b>PageX and PageY arrays</b><br />
The arrays built in the original code are only useful if you are using 1-D pages, ie just cells in a row or cells in a column.  On a page structured like a table everything gets messy.  What I did for my app was to build the arrays more carefully tracking the last x and y pos to determine when a new entry should be added to the array.</p>
<p><b>Scale is not needed for the PageX and PageY calculations</b><br />
Scale has already been applied before the refresh code is reached so when the call to querySelectorAll is made, the co-ordinates have already been adjusted for scale.  Therefore the <code>pos.x * that.scale;</code> and <code>pos.y * that.scale;</code> are not necessary.</p>
<p><b>querySelectorAll doesn&#8217;t return co-ordinates in the necessary frame of reference</b><br />
I have found that I had to normalise the co-ordinates relative to the first element returned from querySelectorAll.</p>
<p>The changes I made to the code only address my requirements and may not be suitable for a general implementation.</p>
<p>Anyway, thanks for the work that you have put into this piece of code and hope that these comments help you.</p>
<p>Regards,<br />
Hunlon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff j</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-24313</link>
		<dc:creator>Jeff j</dc:creator>
		<pubDate>Fri, 05 Aug 2011 01:00:54 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-24313</guid>
		<description><![CDATA[Excellent as usual
can you make a demo example of your 2way scroll using 1Scroll 4.1?  I love the performance of 2way on the old iscroll 3.7 and would like to upgrade it but it seems that your magic ninja Safari Css3 Javascript is beyond me.]]></description>
		<content:encoded><![CDATA[<p>Excellent as usual<br />
can you make a demo example of your 2way scroll using 1Scroll 4.1?  I love the performance of 2way on the old iscroll 3.7 and would like to upgrade it but it seems that your magic ninja Safari Css3 Javascript is beyond me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteo Spinelli</title>
		<link>http://cubiq.org/iscroll-v4-1-3-introduces-performance-mode/comment-page-1#comment-24019</link>
		<dc:creator>Matteo Spinelli</dc:creator>
		<pubDate>Tue, 28 Jun 2011 13:18:36 +0000</pubDate>
		<guid isPermaLink="false">http://cubiq.org/?p=146#comment-24019</guid>
		<description><![CDATA[thanks for the heads-up]]></description>
		<content:encoded><![CDATA[<p>thanks for the heads-up</p>
]]></content:encoded>
	</item>
</channel>
</rss>
