Closed Bug 1006287 Opened 10 years ago Closed 10 years ago

Click on an audionode in the graph should focus the node in the paramslist

Categories

(DevTools Graveyard :: Web Audio Editor, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 32

People

(Reporter: jsantell, Assigned: jsantell)

Details

Attachments

(1 file, 1 obsolete file)

This was previously implemented but no longer worked after some refactoring.
Assignee: nobody → jsantell
Also removed a duplicate test (browser_wa_graph_mouseover.js) as it was a duplicate of the params list mouse over test, and was originally a placeholder for this functionality
Comment on attachment 8418397 [details] [diff] [review]
1006287-focus-paramlist-on-graph-click.patch

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

::: browser/devtools/webaudioeditor/test/browser_wa_graph_click.js
@@ +15,5 @@
> +  let started = once(gFront, "start-context");
> +
> +  reload(target);
> +
> +  let [_, nodes, __] = yield Promise.all([

Why the __?

::: browser/devtools/webaudioeditor/webaudioeditor-view.js
@@ +222,5 @@
>     */
> +  _onGraphNodeClick: function (e) {
> +    let node = findGraphNodeParent(e.target);
> +    if (!node)
> +      return;

When can this happen? Care to add a comment?
Attachment #8418397 - Flags: review?(vporof) → review+
Ah yeah can reuse variable name. `!node` will happen when not clicking on a node, but still within the graph, as no ancestor node will exist (and bubble up to the svg wrapper parent)
Attachment #8418397 - Attachment is obsolete: true
Attachment #8418439 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/618f692cbd11
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 32
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: