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)
DevTools
Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 11
People
(Reporter: paul, Assigned: paul)
References
Details
Attachments
(1 file, 1 obsolete file)
|
4.15 KB,
patch
|
dao
:
review+
msucan
:
review+
|
Details | Diff | Splinter Review |
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).
Comment 1•14 years ago
|
||
is this a dupe of bug 689934?
| Assignee | ||
Comment 2•14 years ago
|
||
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 | ||
Updated•14 years ago
|
Assignee: nobody → paul
| Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•14 years ago
|
||
Also, the current behavior doesn't prevent transitions if the user is scrolling while the node is not locked.
Comment 4•14 years ago
|
||
We're doing developer tool prioritization, filter on 'brontozaur'
to ignore the spam.
Priority: -- → P3
| Assignee | ||
Updated•14 years ago
|
Whiteboard: [good first bug][mentor=paul]
| Assignee | ||
Updated•14 years ago
|
Component: Developer Tools → Developer Tools: Inspector
OS: Mac OS X → All
QA Contact: developer.tools → developer.tools.inspector
Hardware: x86 → All
| Assignee | ||
Comment 5•14 years ago
|
||
| Assignee | ||
Updated•14 years ago
|
Attachment #575987 -
Flags: review?(dao)
Comment 6•14 years ago
|
||
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-
Comment 7•14 years ago
|
||
(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?
| Assignee | ||
Comment 8•14 years ago
|
||
(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.
| Assignee | ||
Comment 9•14 years ago
|
||
attribute instead of class
Attachment #575987 -
Attachment is obsolete: true
Attachment #577203 -
Flags: review?(dao)
Updated•14 years ago
|
Attachment #577203 -
Flags: review?(dao) → review+
| Assignee | ||
Updated•14 years ago
|
Attachment #577203 -
Flags: review?(mihai.sucan)
Comment 10•14 years ago
|
||
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+
| Assignee | ||
Updated•14 years ago
|
Whiteboard: [good first bug][mentor=paul] → [land-in-fx-team]
Comment 11•14 years ago
|
||
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Comment 12•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 11
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•