Closed Bug 827382 Opened 11 years ago Closed 11 years ago

[Settings] Screen flickers when entering panels

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect, P3)

x86
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
B2G C4 (2jan on)
blocking-basecamp +

People

(Reporter: arthurcc, Assigned: etienne)

Details

(Whiteboard: [cr 437586])

Attachments

(2 files, 1 obsolete file)

Reproduce steps:
1. Launch the settings app
2. Click on any panel
3. Observe flickers

p.s. After turning off "layers.offmainthreadcomposition.animate-transform", the flicker disappears.
We would take a patch for this but it's not a blocker for V1
blocking-basecamp: ? → -
tracking-b2g18: --- → +
Renominating. Partners brought this up, and it's happening particularly bad as of the last 48-72hrs of builds.
blocking-basecamp: - → ?
We discussed a plan this morning to improve this.  kaze can you grab or find someone who can?
(In reply to Chris Jones [:cjones] [:warhammer] from comment #3)
> We discussed a plan this morning to improve this.  kaze can you grab or find
> someone who can?

I thought this was a very recent platform regression but if you have a workaround in mind, I’d be happy to implement it ASAP.
(Before I write this out, keep in mind that we'd like to fix this in the platform but it's very hard.)

The plan was to separate the animation into two steps
 - "peek" phase: move the new panel in by a 1% translation or so
 - transition phase: on transitionend from "peek", set up the existing transition

We use this kind of tactic for homescreen transitions and it's proven really effective.
Working on it.
blocking-basecamp: ? → +
tracking-b2g18: + → ---
Priority: -- → P3
Target Milestone: --- → B2G C4 (2jan on)
Assignee: nobody → kaze
Etienne has some free cycles. Assigning to him.
Assignee: kaze → etienne
The patch will be for the settings app only, this bug shouldn't block an sms bug.
No longer blocks: 828552
Whiteboard: [cr 437586]
So is the solution going to be the 1% work-around for 1/15?  If so, I presume the e-mail bug should be un-duped or a new one spun off so we can do that too?
(In reply to Andrew Sutherland (:asuth) from comment #10)
> So is the solution going to be the 1% work-around for 1/15?  If so, I
> presume the e-mail bug should be un-duped or a new one spun off so we can do
> that too?

That what I've been told, so an un-duped seems needed.
Attached patch Patch proposal (obsolete) — Splinter Review
cjones' recommended work around, patch cleaned up pairing with Rik, this should be solid :)
Attachment #700472 - Flags: review?(kaze)
Comment on attachment 700472 [details] [diff] [review]
Patch proposal

Review of attachment 700472 [details] [diff] [review]:
-----------------------------------------------------------------

nice work, please includ some background information in the JS/CSS files before merging.

::: apps/settings/js/settings.js
@@ +515,5 @@
>  
>      // load panel (+ dependencies) if necessary -- this should be synchronous
>      lazyLoad(newPanel);
>  
> +    // switch previous/current/forward classes

would you add a reference to the Gecko bug (+ some quick description) please?

::: apps/settings/style/settings.css
@@ +40,5 @@
>    transition: transform .4s ease;
>  }
> +section[role="region"].peek {
> +  transform: translateX(+0.1%);
> +}

same here, please provide an explanation regarding this hack.
Attachment #700472 - Flags: review?(kaze) → review+
PR: Kaze, want to take a look at the final diff?

https://github.com/mozilla-b2g/gaia/pull/7517
Attached file Pointer to gaia
Attachment #700512 - Flags: review?(kaze)
Attachment #700472 - Attachment is obsolete: true
Comment on attachment 700512 [details]
Pointer to gaia

Oh, that’s way better without the 400ms delay. :-)
Attachment #700512 - Flags: review?(kaze) → review+
https://github.com/mozilla-b2g/gaia/commit/c7eb4ad74e08bc0250267155bfe1322587693127
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
This patch causes the settings app to only show a white screen with current inbound :(
I reverted the gaia change on my machine and it works again.
Attachment #700940 - Flags: review?(kaze)
Comment on attachment 700940 [details] [diff] [review]
Followup to fix the regression on inbound

Review of attachment 700940 [details] [diff] [review]:
-----------------------------------------------------------------

::: apps/settings/style/settings.css
@@ +40,5 @@
> +.uninit section[role="region"],
> +.uninit section[role="region"].peek {
> +  transition: none;
> +}
> +

Would you please add a comment to explain that the 'uninit' class is required to avoid a blank screen on the current branch? (gecko21)
Attachment #700940 - Flags: review?(kaze) → review+
Verified fixed on Unagi 20130113070202
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: