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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 18

People

(Reporter: dao, Assigned: dao)

Details

(Keywords: perf)

Attachments

(1 file)

Attached patch patchSplinter Review
No description provided.
Attachment #658859 - Flags: review?(jaws)
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+
(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
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.

Attachment

General

Created:
Updated:
Size: