Permalink
Browse files

Fix the animation bug where the tab gets moved two positions rather t…

…han one. This closes #1.
  • Loading branch information...
realistschuckle committed Aug 27, 2014
1 parent 11e58e8 commit 259f86cab145a63d1fe1a4b89c1d2c59d1f804d0
Showing with 3 additions and 3 deletions.
  1. +3 −3 ChromeTabs/ChromeTabPanel.cs
@@ -21,14 +21,14 @@ namespace ChromeTabs
/// Follow steps 1a or 1b and then 2 to use this custom control in a XAML file.
///
/// Step 1a) Using this custom control in a XAML file that exists in the current project.
/// Add this XmlNamespace attribute to the root element of the markup file where it is
/// Add this XmlNamespace attribute to the root element of the markup file where it is
/// to be used:
///
/// xmlns:MyNamespace="clr-namespace:ChromiumTabs"
///
///
/// Step 1b) Using this custom control in a XAML file that exists in a different project.
/// Add this XmlNamespace attribute to the root element of the markup file where it is
/// Add this XmlNamespace attribute to the root element of the markup file where it is
/// to be used:
///
/// xmlns:MyNamespace="clr-namespace:ChromiumTabs;assembly=ChromiumTabs"
@@ -251,7 +251,7 @@ protected override void OnPreviewMouseMove(MouseEventArgs e)
ChromeTabItem shiftedTab = this.Children[this.slideIndex - diff] as ChromeTabItem;
if(shiftedTab != this.draggedTab)
{
StickyReanimate(shiftedTab, changed * (this.currentTabWidth - this.overlap), .25);
StickyReanimate(shiftedTab, changed * (this.currentTabWidth - this.overlap), .01);
}
}
}

0 comments on commit 259f86c

Please sign in to comment.