Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

availableHorizontalScroll #18

Merged
merged 3 commits into from
May 31, 2018
Merged

availableHorizontalScroll #18

merged 3 commits into from
May 31, 2018

Conversation

hanorz
Copy link
Contributor

@hanorz hanorz commented May 25, 2018

I found a problem when i use your dragger and tableview delete function at the same time.
When i try to long press and moving tableviewcell, and HorizontalScroll it , the delete function will be active. So i want to block the HorizontalScroll when i am add delete function .

Thanks for your libraries.

Copy link
Owner

@KyoheiG3 KyoheiG3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR!!


draggedCell.offset = CGPoint(x: (actualCell?.frame.size.width)!/2, y: point.y)
draggedCell.transformToPoint(CGPoint(x: (actualCell?.frame.size.width)!/2, y: point.y))
draggedCell.location = CGPoint(x: (actualCell?.frame.size.width)!/2, y: gesture.location(in: tableView).y)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should use draggedCell or if let because forced unwrapping of actualCell is dangerous.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it.

Copy link
Owner

@KyoheiG3 KyoheiG3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@KyoheiG3 KyoheiG3 merged commit a4151f7 into KyoheiG3:master May 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants