Closed Bug 856931 Opened 11 years ago Closed 11 years ago

[Settings] In Brightness menu, the adjust value is not updated sometimes from DOM event when control silder bar.

Categories

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

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:leo+)

RESOLVED DUPLICATE of bug 863164
1.1 QE1 (5may)
blocking-b2g leo+

People

(Reporter: leo.bugzilla.gaia, Unassigned)

Details

(Keywords: regression, Whiteboard: [TD-8127][TD-9064])

Attachments

(3 files)

1. Title : In Brightness menu, silder bar moves quickly and then can't set the adjusted value sometimes.
2. Precondition : 
3. Tester's Action : Settings - Display - Brightness - silder bar moves quickly from left to right and revers.
4. Detailed Symptom (ENG.) : Can't set the adjusted value. Keep the previous setting value.
5. Expected : Apply the adjusted value
6. Reproducibility: Y
1)Frequency Rate : sometimes
7. Mozilla build ID : 20130318070202

In that case, do not dispatch handleEvent in Settings.js
Refer to the attaced video file.
Attached video video file
Summary: [Settings] In Brightness menu, silder bar moves quickly and then can't set the adjusted value sometimes. → [Settings] In Brightness menu, the adjust value is not updated sometimes from DOM event when control silder bar.
Gaia\apps\settings\js\settings.js
In handleEvent: function settings_handleEvent(event)function
Wrong event.target.value is passed.
blocking-b2g: --- → leo?
Please reassign if you're overloaded kaze
Assignee: nobody → kaze
blocking-b2g: leo? → leo+
Keywords: regression
Whiteboard: [TD-8127]
Whiteboard: [TD-8127] → [TD-8127][TD-9064]
I can work on this as soon as my TEF+ bugs are clear.
This bug is difficult to reproduce. It seems like it only happens when sliding the control (everything seems to work fine when tapping directly).
OK, here’s how to reproduce it. 

 • open the Settings > Display panel
 • uncheck “adjust automatically”
 • move the throbber

If the throbber is released over the slider, everything works fine.
If the throbber is released out of the slider (e.g. keep the finger down and slide to the bottom of the screen), the throbber moves properly but the value is not updated accordingly.

See apps/settings/js/utils.js — we listen to the `mouseup' event on the slider itself and nothing more.
Target Milestone: --- → Leo QE1 (5may)
QA Contact: dale
Priority: -- → P1
Assignee: kaze → dale
QA Contact: dale
Just an update, this is only reproducable on v1.0.1, central has native range input it looks like. The mouseup that kaze identified is the problem, will have a patch in the morning as it needs more than just that changed to fix
Is the coming patch for 1.0.1, i.e. should this be sent to tef? instead?
Flags: needinfo?(dale)
Attachment #743016 - Flags: review?(ehung)
Flags: needinfo?(dale)
This can be applied to master, but it only fixes the bug on v1.0.1 (and any branch that doesnt have the native range inputs)
Leo, can you re-test this on v1-train? It sounds like it is no longer reproducible there.
Flags: needinfo?(leo.bugzilla.gaia)
I had tested this bug but I can't reproduce anymore.
plz land.
Flags: needinfo?(leo.bugzilla.gaia)
Comment on attachment 743016 [details]
https://github.com/mozilla-b2g/gaia/pull/9452

redirect to Arthur
Attachment #743016 - Flags: review?(ehung) → review?(arthur.chen)
Comment on attachment 743016 [details]
https://github.com/mozilla-b2g/gaia/pull/9452

Dale, thank you for the effort. The patch enables users drag the thumb outside of the slider, which is great. However, the panel also moves vertically when dragging.

The patch of bug 863164 was just landed, which removed mouse_event_shim and also fixed the bug without the side effect of vertical movement. I would suggest we simply uplift it to v1-train.
Attachment #743016 - Flags: review?(arthur.chen)
Agreed, just tested and the new range polyfill works great without needing patched
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
I am not sure what needs to happen.  Do we want to apply https://github.com/daleharvey/gaia/commit/33a06bd3bd07e6d61c4c2dfbb4e67ec846518289 to v1.0.1?  This is not yet landed on master.  I'm not sure what needs to happen here.
Flags: needinfo?(dale)
Ah sorry, nothing needs to happen since it was resolved separately, that bug is in the process of being uplifted
Flags: needinfo?(dale)
(In reply to Dale Harvey (:daleharvey) from comment #18)
> Ah sorry, nothing needs to happen since it was resolved separately, that bug
> is in the process of being uplifted

Thanks for the update!  Can you either mark this bug as a dupe or set the status-b2g18 flag to 'fixed' when the other bug is uplifted please?
Flags: needinfo?(dale)
Flags: needinfo?(dale)
Resolution: FIXED → DUPLICATE
Unassigning myself from a dup bug
Assignee: dale → nobody
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: