Closed Bug 692466 Opened 14 years ago Closed 14 years ago

[highlighter] transitions should be disabled only while scrolling, not when the node is locked

Categories

(DevTools :: Inspector, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 11

People

(Reporter: paul, Assigned: paul)

References

Details

Attachments

(1 file, 1 obsolete file)

We disable the transitions of the different highlighter elements once a node is locked. So we see these transitions only while inspecting. We don't see them when the HTML Tree view and the Breadcrumbs display are used. So we need to disable transitions while scrolling and resizing. I would propose that: onscroll, we disable the transitions for 200ms. If the user stops scrolling, the transitions are back. If he continues scrolling, we re-disable the transitions for 200ms, etc… (same for resizing).
is this a dupe of bug 689934?
I don't think so. Bug 689934 is about the infobar's transitions not being disabled. Here I talk about when to disable transitions.
Assignee: nobody → paul
Status: NEW → ASSIGNED
Blocks: 663830
Also, the current behavior doesn't prevent transitions if the user is scrolling while the node is not locked.
We're doing developer tool prioritization, filter on 'brontozaur' to ignore the spam.
Priority: -- → P3
Whiteboard: [good first bug][mentor=paul]
Component: Developer Tools → Developer Tools: Inspector
OS: Mac OS X → All
QA Contact: developer.tools → developer.tools.inspector
Hardware: x86 → All
Attached patch patch v1 (obsolete) — Splinter Review
Attachment #575987 - Flags: review?(dao)
Comment on attachment 575987 [details] [diff] [review] patch v1 Please use set/removeAttribute instead of classList.add/remove here.
Attachment #575987 - Flags: review?(dao) → review-
(In reply to Dão Gottwald [:dao] from comment #6) > Comment on attachment 575987 [details] [diff] [review] [diff] [details] [review] > patch v1 > > Please use set/removeAttribute instead of classList.add/remove here. What's up with classList.add/remove?
(In reply to Joe Walker from comment #7) > (In reply to Dão Gottwald [:dao] from comment #6) > > Comment on attachment 575987 [details] [diff] [review] [diff] [details] [review] [diff] [details] [review] > > patch v1 > > > > Please use set/removeAttribute instead of classList.add/remove here. > > What's up with classList.add/remove? Dao meant that it's better to use an attribute than a class here. If I'm not mistaken, classes should be re-usable. I will use a disable-transitions attribute.
Attached patch patch v1.1Splinter Review
attribute instead of class
Attachment #575987 - Attachment is obsolete: true
Attachment #577203 - Flags: review?(dao)
Attachment #577203 - Flags: review?(dao) → review+
Attachment #577203 - Flags: review?(mihai.sucan)
Comment on attachment 577203 [details] [diff] [review] patch v1.1 Review of attachment 577203 [details] [diff] [review]: ----------------------------------------------------------------- Patch looks and works good. Thank you! ::: browser/devtools/highlighter/inspector.jsm @@ +699,5 @@ > + this.IUI.win.setTimeout(function() { > + this.veilContainer.removeAttribute("disable-transitions"); > + this.nodeInfo.container.removeAttribute("disable-transitions"); > + this.transitionDisabler = null; > + }.bind(this), 500); You might want to put the number in a constant at the top of the JSM.
Attachment #577203 - Flags: review?(mihai.sucan) → review+
Whiteboard: [good first bug][mentor=paul] → [land-in-fx-team]
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 11
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: