cocos2d-iphone-extensions icon indicating copy to clipboard operation
cocos2d-iphone-extensions copied to clipboard

CCMenuAdvanced inertial scrolling

Open cocos2dbeginner opened this issue 14 years ago • 7 comments

While scrolling if you move your finger and than just release your finger of the menu if should scroll a bit more - smooth scrolling

Like a UITableView

cocos2dbeginner avatar Aug 01 '11 08:08 cocos2dbeginner

You mean inertial scrolling? Well ok. Probably somebody who will add this to CCMenuAdvanced would like also to implement soultion for #50.

Nice suggestion, thanks! Added Labels: Enhancement

psineur avatar Aug 01 '11 09:08 psineur

Yes inertial scrolling...

cocos2dbeginner avatar Aug 06 '11 07:08 cocos2dbeginner

Moving this to 0.2 - got code from Jamorn http://www.cocos2d-iphone.org/forum/topic/14095#post-110861

psineur avatar Aug 20 '11 06:08 psineur

Also - some code for #50 / #51 http://www.cocos2d-iphone.org/forum/topic/19884 @cocos2dbeginner it's becomes more difficult for me to monitor extensions subforum, so if you can - please, mention in issues (or even open new) if you find some code for them on the forum.

Thanks!

psineur avatar Aug 20 '11 06:08 psineur

Inertial scrolling was implemented by Jamorn Horathai in his CCSuperMenuAdvanced.

Here's a tree when you can find it: https://github.com/cocos2d/cocos2d-iphone-extensions/tree/CCMenuAdvanced-nonMenuItemChildren-and-inertialScrolling

I didn't tested it yet - just get code from Jamorn and tried to break it in few commits to get what's happening there.

psineur avatar Sep 18 '11 20:09 psineur

Reverted changes back. Inertial scrolling doesn't work in horizontal mode & is laggish. Probably some additional calculations for velocity is needed during moving finger.

Moving this issue futher from 0.2 milestone.

psineur avatar Oct 08 '11 06:10 psineur

Removed branch with Jamorn's code. Removing tag "own feature branch". There's no currently "ready" or even "in progress" code to solve this issue.

psineur avatar Nov 09 '11 15:11 psineur