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

Dragging tab out of window doesn't work right when dragging left #19

Open
chinhster opened this issue Dec 10, 2013 · 1 comment
Open

Comments

@chinhster
Copy link

If you drag a tab out of its window to the right of the window, the tab is under the cursor as you drag as expected. However, if you drag a tab out of its window towards the left, the tab appears well left of the cursor instead of under it.

@chinhster
Copy link
Author

The problem is that the _dragDetachedButton: method in MMTabDragAssistant.m uses the frame of the button that's being dragged AFTER it has been removed from its superview. What I did to fix it was in the _dragAttachedTabBarButton: method, I stored the origin of the button's frame at the beginning of the method before the button has been removed from its superview and passed that location to the _dragDetachedButton: method.

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

No branches or pull requests

1 participant