cubiq/iscroll — pull request #268 by acanals (2012-09-20 09:10:19+00:00)
Title: Scroller forcing x coord to 0 when setting hScroll = false

I'm not sure if i'm doing this correctly - but here goes. I was using iScroll 4 in a quite interesting situation where I have an instance of a scroller within a scroller. Think a carousel with columns with nested vertical scrollable areas within those columns. I wanted to disable the hScroll for the parent scroller whenever I was triggering the inner vertical scroller so I set the parent scroller.hScroll = false. This worked fine on the first page, however on subsequent pages the scroller reset the x coord to 0. I found that from within iScroll there was a hard set value of 0 in the _poz method when evaluating this.hScroll. So, instead of setting that 0 value, if this.x or this.y is used it maintains the coordinate of the current state of the scroller. This seems like it would be expected behavior unless I am overlooking something which is totally possible. Also, thank you for this awesome library and for all the hard work put into it.