Closed
Bug 1147148
Opened 9 years ago
Closed 9 years ago
Bring tab swipe deletion closer to designed interaction
Categories
(Firefox for iOS :: General, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fennec | + | --- |
People
(Reporter: dhenein, Assigned: stephanleroux)
Details
Attachments
(2 files, 1 obsolete file)
Swiping a tab should feel more dynamic and should not involve the default 'Remove' confirmation that UITableView/CollectionView offers. Swiping the tab past a threshold should animate the tab away and delete it. I will work to better define this interaction, but we can probably start moving away from the table view swipe behaviour. *ignore the tab and visual design in the attached mockup
Assignee | ||
Comment 1•9 years ago
|
||
Mind if I take this one? I have a partial implementation I've started to work on.
Assignee | ||
Comment 3•9 years ago
|
||
First pass at tab deletion
Updated•9 years ago
|
Attachment #8585035 -
Flags: review?(sarentz)
Updated•9 years ago
|
tracking-fennec: ? → +
Comment 4•9 years ago
|
||
This is the same patch that :sleroux originally submitted with two small changes that I made. From Gitub: I moved this branch to #293 so that I could add an additional change to it. I did two things: * To fix the offset issue I assigned self.startLocation to self.animatingView.center instead of self.originalCenter. * I changed the logic to decide if the tab should bounce back or not a little bit. Previously it was possible to slowly move the tab to the left or right and then upon release it would slowly continue moving off the screen. I changed it so that is now takes the velocity into account. You really have to give the tab a push AND be past the treshold. Otherwise it just bounced back.
Attachment #8585035 -
Attachment is obsolete: true
Attachment #8585035 -
Flags: review?(sarentz)
Attachment #8586880 -
Flags: review+
Comment 5•9 years ago
|
||
Merged this. I am marking this as resolved. We will need to file a new bug for the work to move the tabstraycontroller to use a UICollectionView. That work can also include updates to this code.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•