Skip to content

Commit 8462740

Browse files
committed
change default spring resistance
1 parent 088bbd5 commit 8462740

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JSQMessagesViewController/Layout/JSQMessagesCollectionViewFlowLayout.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ FOUNDATION_EXPORT const CGFloat kJSQMessagesCollectionViewCellLabelHeightDefault
6363
* Specifies the degree of resistence for the "springiness" of items in the layout.
6464
* This property has no effect if `springinessEnabled` is set to `NO`.
6565
*
66-
* @discussion The default value is `900`. Increasing this value increases the resistance, that is, items become less "bouncy".
66+
* @discussion The default value is `1000`. Increasing this value increases the resistance, that is, items become less "bouncy".
6767
* Decrease this value in order to make items more "bouncy".
6868
*/
6969
@property (assign, nonatomic) NSUInteger springResistanceFactor;

JSQMessagesViewController/Layout/JSQMessagesCollectionViewFlowLayout.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ - (void)awakeFromNib
8585
self.outgoingAvatarViewSize = defaultAvatarSize;
8686

8787
_springinessEnabled = NO;
88-
_springResistanceFactor = 900;
88+
_springResistanceFactor = 1000;
8989

9090
[[NSNotificationCenter defaultCenter] addObserver:self
9191
selector:@selector(jsq_didReceiveApplicationMemoryWarningNotification:)

0 commit comments

Comments
 (0)