Closed
Bug 1147479
Opened 10 years ago
Closed 10 years ago
Improve the transition when adding an item from the Reading List
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: mmaslaney, Assigned: bwinton)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 4 obsolete files)
1.54 KB,
text/plain
|
Details | |
2.16 KB,
patch
|
Unfocused
:
review+
bwinton
:
ui-review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Current transition: http://cl.ly/0Q3o0r1Z1V0g
We can improve this transition by adding in some easing, in addition to having the newly added item slide down from the top.
Assignee | ||
Comment 1•10 years ago
|
||
What do you think about this, Michael?
A build with all the transitions is up at https://dl.dropboxusercontent.com/u/2301433/Firefox/Reading/Transitions.dmg
Reporter | ||
Updated•10 years ago
|
Attachment #8583299 -
Flags: ui-review?(mmaslaney) → ui-review+
Assignee | ||
Comment 2•10 years ago
|
||
Comment on attachment 8583299 [details] [diff] [review]
Needs to be applied overtop of bug 1147444.
Don't forget to read the comment in bug 1147444… :)
Attachment #8583299 -
Flags: review?(jaws)
Assignee | ||
Updated•10 years ago
|
Points: --- → 2
Assignee | ||
Comment 3•10 years ago
|
||
We need to switch the height to 52px here, as well.
(Redirecting to Unfocused, because Jaws isn't accepting reviews currently.)
Attachment #8583299 -
Attachment is obsolete: true
Attachment #8583299 -
Flags: review?(jaws)
Attachment #8584666 -
Flags: ui-review+
Attachment #8584666 -
Flags: review?(bmcbride)
Comment 4•10 years ago
|
||
Comment on attachment 8584666 [details] [diff] [review]
Use the updated height here, too.
Review of attachment 8584666 [details] [diff] [review]:
-----------------------------------------------------------------
Plus comments in bug 1147444 about simplifying the transition event handling.
::: browser/themes/shared/readinglist/sidebar.inc.css
@@ +32,5 @@
> cursor: pointer;
> padding: 6px;
> opacity: 1;
> height: 52px;
> + transition: opacity 150ms ease-in-out, height 150ms ease-in-out;
It would be worth testing this on a really low-end machine (like the Asus T100's floating about, that the perf team recommends), to ensure it doesn't suffer from jank. I was less concerned when the height transition was delayed. It should be fine, but just in case...
@@ +122,5 @@
> opacity: 0;
> + height: 52px
> +}
> +
> +.item.removed {
I don't see why you need the .added and .removed classes. Could probably simplify even further by combining the .adding and .removing classes into one .concealed class - and transition in/out of that for both adding and removing.
Attachment #8584666 -
Flags: review?(bmcbride) → review-
Assignee | ||
Comment 5•10 years ago
|
||
(In reply to Blair McBride [:Unfocused] (I don't read bugmail - needinfo? me!) from comment #4)
> ::: browser/themes/shared/readinglist/sidebar.inc.css
> @@ +32,5 @@
> > + transition: opacity 150ms ease-in-out, height 150ms ease-in-out;
> It would be worth testing this on a really low-end machine (like the Asus
> T100's floating about, that the perf team recommends), to ensure it doesn't
> suffer from jank. I was less concerned when the height transition was
> delayed. It should be fine, but just in case...
>
> @@ +122,5 @@
> > +.item.removed {
> I don't see why you need the .added and .removed classes. Could probably
> simplify even further by combining the .adding and .removing classes into
> one .concealed class - and transition in/out of that for both adding and
> removing.
I'm using the .removing/.removed (and the .pre-adding/.adding) classes to transition first the opacity, and then the max-height (when removing, that is. When adding, I transition first the max-height and then the opacity). And I'm doing them in order to make the transition both less confusing, and (hopefully) less janky. ;) I'll test it on a low-end netbook on Monday, though, just to make sure.
(I also switched this to max-height, for the same reasons as bug 1147444.)
Attachment #8584666 -
Attachment is obsolete: true
Attachment #8585055 -
Flags: ui-review+
Attachment #8585055 -
Flags: review?(bmcbride)
Updated•10 years ago
|
status-firefox38:
--- → affected
status-firefox39:
--- → affected
Flags: qe-verify+
QA Contact: andrei.vaida
Comment 6•10 years ago
|
||
I still don't think that's needed - it's way too complex for what it does. I'm attaching some example code to show what I mean.
(The requestAnnimationFrame calls are needed due to reflow optimization and to avoid needing to force a sync reflow. I don't understand why your patch was working in the sidebar without that.)
Updated•10 years ago
|
Attachment #8585055 -
Flags: review?(bmcbride) → review-
Assignee | ||
Comment 7•10 years ago
|
||
Ah, okay. I'll update the patch(es) to do that instead. Thanks for the explanation! :)
Assignee | ||
Comment 8•10 years ago
|
||
Note: I've added "visible" to the item div so that the items show up at the start. That gets removed in the next patch, but I wanted to leave it in there.
Attachment #8585055 -
Attachment is obsolete: true
Attachment #8585619 -
Flags: ui-review+
Attachment #8585619 -
Flags: review?(bmcbride)
Assignee | ||
Comment 9•10 years ago
|
||
I've left in the two requestAnimationFrames from your example.
Attachment #8585619 -
Attachment is obsolete: true
Attachment #8585619 -
Flags: review?(bmcbride)
Attachment #8585622 -
Flags: ui-review+
Attachment #8585622 -
Flags: review?(bmcbride)
Comment 10•10 years ago
|
||
Comment on attachment 8585622 [details] [diff] [review]
The next version of the patch.
Review of attachment 8585622 [details] [diff] [review]:
-----------------------------------------------------------------
Well that ended up being a much smaller patch!
Attachment #8585622 -
Flags: review?(bmcbride) → review+
Assignee | ||
Comment 11•10 years ago
|
||
Hah! Right? :) It would have been smaller still if I hadn't left the "visible" in from the previous patch… ;)
Keywords: checkin-needed
Comment 12•10 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 13•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Updated•10 years ago
|
Iteration: --- → 40.1 - 13 Apr
Flags: firefox-backlog+
Assignee | ||
Comment 14•10 years ago
|
||
Uplift request:
[User impact if declined]: There will be a more jarring transition when adding items from the reading list.
[Describe test coverage new/current, TBPL]: Manual testing, and baking on mozilla-central for two days.
[Risks and why]: Low risk because its a very small change impacting only reader mode.
[String/UUID change made/needed]: none
Comment 15•10 years ago
|
||
Verified fixed on Nightly 40.0a1 (2015-04-02), using Windows 7 (x64), Ubuntu 14.04 (x64) and Mac OS X 10.9.5.
Status: RESOLVED → VERIFIED
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 8585622 [details] [diff] [review]
The next version of the patch.
Approval Request Comment
See Comment 14.
Attachment #8585622 -
Flags: approval-mozilla-beta?
Attachment #8585622 -
Flags: approval-mozilla-aurora?
Comment 17•10 years ago
|
||
Comment on attachment 8585622 [details] [diff] [review]
The next version of the patch.
Low risk, we want Reading list to be polished, taking it.
Should be in 38 beta 2 or 3.
Attachment #8585622 -
Flags: approval-mozilla-beta?
Attachment #8585622 -
Flags: approval-mozilla-beta+
Attachment #8585622 -
Flags: approval-mozilla-aurora?
Attachment #8585622 -
Flags: approval-mozilla-aurora+
Comment 18•10 years ago
|
||
Updated•10 years ago
|
Target Milestone: Firefox 38 → Firefox 40
Comment 19•10 years ago
|
||
Comment 20•10 years ago
|
||
Verified fixed on Beta 38.0b2-build1 (20150406174117) as well, using Windows 7 (x64), Ubuntu 14.04 (x64) and Mac OS X 10.9.5.
Comment 21•10 years ago
|
||
Removing qe-verify flag as this was verified on Nightly and Beta, and won't be verified on 39 Aurora.
Flags: qe-verify+
You need to log in
before you can comment on or make changes to this bug.
Description
•