Skip to content
This repository has been archived by the owner on Oct 31, 2019. It is now read-only.

Crash/Bug when a second finger is held on the screen #37

Open
CraigAppleton opened this issue Apr 16, 2014 · 4 comments
Open

Crash/Bug when a second finger is held on the screen #37

CraigAppleton opened this issue Apr 16, 2014 · 4 comments

Comments

@CraigAppleton
Copy link

Hi there,
I have found a crash and some unexpected behaviour which is caused by placing a second finger on the screen. It does not always result in a crash (as it seems to depend on what cell you have selected originally and the location of the second finger press). To cause the issue I begin selecting a cell and move it to a different location. Whilst still holding onto the cell I am moving i then place a second finger on the screen and hold it down. If I then release the original cell i was moving (leaving the second finger on the screen) it can cause a crash, move the cell to an undesired location, or work as normal. I am using an iPad 3 and using your demo project on the flow layout to create the issue as well as my own project. If you want any more info just ask!

@louistran99
Copy link

Verified. I guess I can look into it

@danmartyn
Copy link

Any updates on this? I'm seeing it in my app as well. I can't generate the crash 100% of the time, but it seems if I long press and begin to move an item, then before releasing, tap and hold and try to move another item, it will sometimes crash.

@louistran99
Copy link

@ghost
Copy link

ghost commented Mar 24, 2015

here's a fix:
in LSCollectionViewHelper.h, change this:
@Property (nonatomic, readonly) UIGestureRecognizer *panPressGestureRecognizer;
to this:
@Property (nonatomic, readonly) UIPanGestureRecognizer *panPressGestureRecognizer;
then add this to line 67 LSCollectionViewHelper.m:
_panPressGestureRecognizer.maximumNumberOfTouches = 1;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants