cocos2d / cocos2d-x-extensions

samples games & code snips for cocos2d-x
www.cocos2d-x.org
152 stars 111 forks source link

Scroll layer improvement #9

Closed moadib closed 13 years ago

moadib commented 13 years ago

There is m_fMinimumTouchLengthToChangePage variable which not used correctly in iphone version of class. Now it's used as expected.

Also changed behavior when user trying to slide over first or last page. There is no need to show him empty screen. I've added m_fMarginOffset field which determine maximum margin offset which user can see.