From 2b1b1ea33b4ec1c33e2eeeb817baea0c6afb8956 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 12 Dec 2012 17:45:59 +0000 Subject: [PATCH 1/2] Fixed: CPScrollView setGlobalScrollerStyle: return value. --- AppKit/CPScrollView.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPScrollView.j b/AppKit/CPScrollView.j index 15af71088..93fb6b374 100644 --- a/AppKit/CPScrollView.j +++ b/AppKit/CPScrollView.j @@ -213,7 +213,7 @@ var CPScrollerStyleGlobal = CPScrollerStyleOverlay, @param aStyle the scroller style to set all scroller views to use (CPScrollerStyleLegacy or CPScrollerStyleOverlay) */ -+ (int)setGlobalScrollerStyle:(int)aStyle ++ (void)setGlobalScrollerStyle:(int)aStyle { CPScrollerStyleGlobal = aStyle; [[CPNotificationCenter defaultCenter] postNotificationName:CPScrollerStyleGlobalChangeNotification object:nil]; From 095858d3d5584d17f7ce5fff70ed034b1ab370e4 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 12 Dec 2012 17:47:50 +0000 Subject: [PATCH 2/2] Fixed: token field autocomplete scrollbars unresponsive to mouse. Without this fix, the scroll handle in the token field autocomplete menu could not be moved using the mouse. Only scroll wheel or keyboard based scrolling was possible. This fix enables regular mouse interaction with the scrollbar. --- AppKit/_CPAutocompleteMenu.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/_CPAutocompleteMenu.j b/AppKit/_CPAutocompleteMenu.j index 00ac084a8..2aaafd81f 100644 --- a/AppKit/_CPAutocompleteMenu.j +++ b/AppKit/_CPAutocompleteMenu.j @@ -55,7 +55,7 @@ var _CPAutocompleteMenuMaximumHeight = 307; [_menuWindow setLevel:CPPopUpMenuWindowLevel]; [_menuWindow setHasShadow:YES]; [_menuWindow setShadowStyle:CPMenuWindowShadowStyle]; - [_menuWindow setAcceptsMouseMovedEvents:NO]; + [_menuWindow setAcceptsMouseMovedEvents:YES]; [_menuWindow setBackgroundColor:[_CPMenuWindow backgroundColorForBackgroundStyle:_CPMenuWindowPopUpBackgroundStyle]]; var contentView = [_menuWindow contentView];