diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..642109c
Binary files /dev/null and b/.DS_Store differ
diff --git a/TYCyclePagerView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TYCyclePagerView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/TYCyclePagerView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/TYCyclePagerView.xcodeproj/project.xcworkspace/xcuserdata/quanhai.xcuserdatad/UserInterfaceState.xcuserstate b/TYCyclePagerView.xcodeproj/project.xcworkspace/xcuserdata/quanhai.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..ae48ef4
Binary files /dev/null and b/TYCyclePagerView.xcodeproj/project.xcworkspace/xcuserdata/quanhai.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/TYCyclePagerViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/TYCyclePagerViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
new file mode 100644
index 0000000..18d9810
--- /dev/null
+++ b/TYCyclePagerViewDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ IDEDidComputeMac32BitWarning
+
+
+
diff --git a/TYCyclePagerViewDemo.xcodeproj/project.xcworkspace/xcuserdata/quanhai.xcuserdatad/UserInterfaceState.xcuserstate b/TYCyclePagerViewDemo.xcodeproj/project.xcworkspace/xcuserdata/quanhai.xcuserdatad/UserInterfaceState.xcuserstate
new file mode 100644
index 0000000..30c1982
Binary files /dev/null and b/TYCyclePagerViewDemo.xcodeproj/project.xcworkspace/xcuserdata/quanhai.xcuserdatad/UserInterfaceState.xcuserstate differ
diff --git a/TYCyclePagerViewDemo.xcodeproj/xcuserdata/quanhai.xcuserdatad/xcschemes/xcschememanagement.plist b/TYCyclePagerViewDemo.xcodeproj/xcuserdata/quanhai.xcuserdatad/xcschemes/xcschememanagement.plist
new file mode 100644
index 0000000..1f3047b
--- /dev/null
+++ b/TYCyclePagerViewDemo.xcodeproj/xcuserdata/quanhai.xcuserdatad/xcschemes/xcschememanagement.plist
@@ -0,0 +1,14 @@
+
+
+
+
+ SchemeUserState
+
+ TYCyclePagerViewDemo.xcscheme_^#shared#^_
+
+ orderHint
+ 0
+
+
+
+
diff --git a/TYCyclePagerViewDemo/TYCyclePagerView/TYCyclePagerView.m b/TYCyclePagerViewDemo/TYCyclePagerView/TYCyclePagerView.m
index a2f42d5..9dba381 100755
--- a/TYCyclePagerViewDemo/TYCyclePagerView/TYCyclePagerView.m
+++ b/TYCyclePagerViewDemo/TYCyclePagerView/TYCyclePagerView.m
@@ -531,6 +531,10 @@ - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
}
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset {
+ if (velocity.x < 0 && _beginDragIndexSection.index == 0 && !_isInfiniteLoop){
+ // 修复在第一个Cell往右滑,会自动滑向下一个Cell的BUG
+ return;
+ }
if (fabs(velocity.x) < 0.35 || !TYEqualIndexSection(_beginDragIndexSection, _indexSection)) {
targetContentOffset->x = [self caculateOffsetXAtIndexSection:_indexSection];
return;