DescriptionMac: Fix for janky tab dragging/reordering.
-[TabView drawRect:] was called repeatedly to unnecessarily update the glow
that is not changing or should not have changed.
1. Selected tabs don't have glow, so don't redraw on mouseMoved.
2. When dragging an unselected tab, the mouse point relative to the tab view
does not change, so no need to redraw the glow.
3. When a dragged unselected tab slides behind another tab, let the dragged tab
keep the glow instead of the tab in front of it (this is a behavior change).
I think this is the more correct behavior, and we never have to redraw tabs
while dragging.
BUG=452925
Committed: https://crrev.com/2dad4dfbdd6fbc846f09766a263739ea6f3439ed
Cr-Commit-Position: refs/heads/master@{#313734}
Patch Set 1 : #
Total comments: 2
Patch Set 2 : Fix for rsesek #
Messages
Total messages: 10 (4 generated)
|