Closed
Bug 789032
Opened 13 years ago
Closed 13 years ago
Dragging a link over the tab strip's scroll arrows calls _getDropIndex unnecessarily
Categories
(Firefox :: Tabbed Browser, defect)
Firefox
Tabbed Browser
Tracking
()
RESOLVED
FIXED
Firefox 18
People
(Reporter: dao, Assigned: dao)
Details
(Keywords: perf)
Attachments
(1 file)
|
1.52 KB,
patch
|
jaws
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #658859 -
Flags: review?(jaws)
Comment 1•13 years ago
|
||
Comment on attachment 658859 [details] [diff] [review]
patch
Review of attachment 658859 [details] [diff] [review]:
-----------------------------------------------------------------
> var minMargin = scrollRect.left - rect.left;
> var maxMargin = Math.min(minMargin + scrollRect.width,
> scrollRect.right);
> if (!ltr)
> [minMargin, maxMargin] = [this.clientWidth - maxMargin,
> this.clientWidth - minMargin];
minMargin and maxMargin are only referenced inside of the |if (pixelsToScroll)| block. Can you move these lines within that block (and switch to using |let| for these at the same time)?
Attachment #658859 -
Flags: review?(jaws) → review+
| Assignee | ||
Comment 2•13 years ago
|
||
(In reply to Jared Wein [:jaws] from comment #1)
> minMargin and maxMargin are only referenced inside of the |if
> (pixelsToScroll)| block. Can you move these lines within that block (and
> switch to using |let| for these at the same time)?
filed bug 789079 for this
| Assignee | ||
Comment 3•13 years ago
|
||
Comment 4•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 18
You need to log in
before you can comment on or make changes to this bug.
Description
•