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

Bug 1506791 - drag reorder and delete is crashing. let's not. #4390

Merged

Conversation

garvankeeley
Copy link
Contributor

The fix is to ignore the drag and reload the collection view.
It would be nice-to-have if the drag could be animated back to exit the
drag state, but Apple APIs do not expose that level of control. All we
can do is ignore the drag.

I was trying to do something similar before this patch (by just ignoring the drag), but that was insufficient, the collection view needs to be reloaded fully.

@farhanpatel
Copy link
Contributor

Looks good. But tests arent compiling

The fix is to ignore the drag and reload the collection view.
It would be nice-to-have if the drag could be animated back to exit the
drag state, but Apple APIs do not expose that level of control. All we
can do is ignore the drag.
@garvankeeley
Copy link
Contributor Author

Oops, is 100% more buildy now.

@mozillamobilebot
Copy link

SwiftLint found issues

Warnings

File Line Reason
TabTrayController.swift 248 Swift constructors are preferred over legacy convenience functions.
TabTrayController.swift 252 Swift constructors are preferred over legacy convenience functions.

Generated by 🚫 Danger

@garvankeeley garvankeeley merged commit 3f9e529 into mozilla-mobile:master Nov 27, 2018
@garvankeeley garvankeeley deleted the garvan/bug-1506791-dandd branch November 27, 2018 22:38
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

3 participants