adium 4229:4b681ec542cd: Avoid the bouncing effect when scrollin...

commits at adium.im commits at adium.im
Fri Oct 14 15:32:57 UTC 2011


details:	http://hg.adium.im/adium/rev/4b681ec542cd
revision:	4229:4b681ec542cd
branch:		(none)
author:		Thijs Alkemade <thijsalkemade at gmail.com>
date:		Fri Oct 14 17:29:49 2011 +0200

Avoid the bouncing effect when scrolling on Lion. This looks very bad when using a borderless window.

Fixes #15455
(transplanted from e74f6e415da3c1fb46b01d725b7b528497a64351)

diffs (17 lines):

diff -r 6c13a789fe42 -r 4b681ec542cd Source/AIListWindowController.m
--- a/Source/AIListWindowController.m	Wed Oct 12 18:20:06 2011 +0200
+++ b/Source/AIListWindowController.m	Fri Oct 14 17:29:49 2011 +0200
@@ -175,6 +175,13 @@
 																	  inOutlineView:contactListView
 																	   inScrollView:scrollView_contactList 
 																		   delegate:self];
+	
+	/* Avoid the bouncing effect when scrolling on Lion. This looks very bad when using a borderless window.
+	 * TODO: (10.7+) remove this if
+	 */
+	if ([scrollView_contactList respondsToSelector:@selector(setVerticalScrollElasticity:)]) {
+		[scrollView_contactList setVerticalScrollElasticity:1]; // NSScrollElasticityNone
+	}
 
 	//super's windowDidLoad will restore our location, which is based upon the contactListRoot
 	[super windowDidLoad];




More information about the commits mailing list