Closed
Bug 809294
Opened 12 years ago
Closed 12 years ago
FM Radio: Dial has high latency, sometimes does not respond to touch
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: gbrander, Assigned: gbrander)
References
Details
(Whiteboard: uxbranch, landed in uxbranch, qa-verified)
Attachments
(1 file)
(deleted),
patch
|
vingtetun
:
review+
vingtetun
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
What happens
------------
Launch FM Radio app. Drag dial. There is a high latency between touch and dial response. Occasionally, frames are dropped during animation.
Why
---
Notches in FM Radio app dial are currently rendered as floated divs, making for lots of DOM elements and lots of layout.
Proposed solution
-----------------
Notches have a static width/height and distance between. Currently, the DOM elements are used purely for visual reasons. Use a background image instead of separate DOM elements for every notch.
Assignee | ||
Comment 1•12 years ago
|
||
Pull request (fixes bug): https://github.com/mozilla-b2g/gaia/pull/6224
Assignee | ||
Comment 2•12 years ago
|
||
NOTE: If blocking-basecamp+ is set, just land it for now.
[Approval Request Comment]
Bug caused by (feature/regressing bug #):
User impact if declined: radio tuner dial does not consistently respond to user input.
Testing completed:
Risk to taking this patch (and alternatives if risky): low. I did the simplest possible thing that can work. Speaking with Chris Jones, we could also take an alternative approach that would further simplify the code, but would increase the amount of code changed.
Attachment #679293 -
Flags: review?(dkuo)
Attachment #679293 -
Flags: approval-gaia-master?(21)
Updated•12 years ago
|
Attachment #679293 -
Flags: review?(dkuo) → review?(pzhang)
Comment 3•12 years ago
|
||
Comment on attachment 679293 [details] [diff] [review]
Patch for issue 809294: improve speed of radio tuner dial (generated via git diff)
Review of attachment 679293 [details] [diff] [review]:
-----------------------------------------------------------------
::: apps/fm/js/fm.js
@@ +330,5 @@
> var dialValue = markStart + i * 0.1;
> + if (dialValue < start) {
> + startMaskWidth += unitWidth;
> + }
> + else if (dialValue > end) {
Should "else" be the same line as the last curly bracket, like this:
} else if (dialValue > end) {
?
::: apps/fm/style/fm.css
@@ +124,4 @@
> font-weight: lighter;
> height: 9rem;
> overflow: hidden;
> + background: #4C5055;
The linear gradient background color and the decoration line under the dialer are lost, please check the visual design: https://wiki.mozilla.org/Gaia/FMRadio#Visual
Attachment #679293 -
Flags: review?(pzhang) → review-
Assignee | ||
Comment 4•12 years ago
|
||
Hi Pin Zhang! Thanks for your feedback.
> Should "else" be the same line as the last curly bracket, like this:
> } else if (dialValue > end) {
> ?
Either approach is valid. Happy to change this if our style guide prefers same line.
> The linear gradient background color and the decoration line under the dialer are lost, please check the visual design: https://wiki.mozilla.org/Gaia/FMRadio#Visual
Thanks for noticing. This came out of a chat with Patryk of visual design. With the low color-depth of the phone screen, the gradient doesn't really make a visual difference. Patryk agreed we were better off without it.
Patryk, can I get you to confirm? Thanks!
Comment 5•12 years ago
|
||
Yes Pin, Gordon and I talked about this changed, please approve it.
Comment 6•12 years ago
|
||
if {
} else if {
}
And you want to request a new review :)
Comment 7•12 years ago
|
||
(In reply to Patryk Adamczyk [:patryk] UX from comment #5)
> Yes Pin, Gordon and I talked about this changed, please approve it.
So the last DIV child node of the "dialer-container" and the related styles should be removed, please update the commits of the github issue #6224, r=me
Assignee | ||
Comment 8•12 years ago
|
||
Hi Pin,
I've updated the pull request with the change you requested.
Currently pull request is issued as a series of commits. As a previous user of hg, git rebase is bending my mind a bit. LMK if a rebase is a must. Thanks!
Comment 9•12 years ago
|
||
Comment on attachment 679293 [details] [diff] [review]
Patch for issue 809294: improve speed of radio tuner dial (generated via git diff)
(In reply to Gordon Brander :gbrander from comment #8)
> Hi Pin,
> I've updated the pull request with the change you requested.
>
> Currently pull request is issued as a series of commits. As a previous user
> of hg, git rebase is bending my mind a bit. LMK if a rebase is a must.
> Thanks!
Let's reask him for review then. It is sometimes hard to see a comment in bugmails.
Attachment #679293 -
Flags: review- → review?
Comment 10•12 years ago
|
||
Comment on attachment 679293 [details] [diff] [review]
Patch for issue 809294: improve speed of radio tuner dial (generated via git diff)
I forgot the name of the reviewer in the field. Sorry for the spam.
Attachment #679293 -
Flags: review? → review?(pzhang)
Comment 11•12 years ago
|
||
(In reply to Gordon Brander :gbrander from comment #8)
> Hi Pin,
> I've updated the pull request with the change you requested.
>
> Currently pull request is issued as a series of commits. As a previous user
> of hg, git rebase is bending my mind a bit. LMK if a rebase is a must.
> Thanks!
r=me
To keep the commit clean, I think you should rebase your pull request (#6224), the merge commits which modified the camera app doesn't make any sense in this bug fixing.
Comment 12•12 years ago
|
||
Comment on attachment 679293 [details] [diff] [review]
Patch for issue 809294: improve speed of radio tuner dial (generated via git diff)
Review of attachment 679293 [details] [diff] [review]:
-----------------------------------------------------------------
Carrying pzhang r+. Make sure to address his comments and rebase your commits :)
Attachment #679293 -
Flags: review?(pzhang)
Attachment #679293 -
Flags: review+
Attachment #679293 -
Flags: approval-gaia-master?(21)
Attachment #679293 -
Flags: approval-gaia-master+
Comment 13•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•12 years ago
|
Whiteboard: uxbranch
Assignee | ||
Updated•12 years ago
|
Whiteboard: uxbranch → uxbranch, landed in uxbranch
Verified in 11/27/2012 build
Unagi phone, build 2012/11/27
Status: RESOLVED → VERIFIED
Updated•12 years ago
|
Whiteboard: uxbranch, landed in uxbranch → uxbranch, landed in uxbranch, qa-verified
You need to log in
before you can comment on or make changes to this bug.
Description
•