Re: Scroll view within scroll view blocks scrolling
Re: Scroll view within scroll view blocks scrolling
- Subject: Re: Scroll view within scroll view blocks scrolling
- From: Indragie Karunaratne <email@hidden>
- Date: Thu, 28 Apr 2011 20:42:04 -0600
Figured out a super easy solution for this. Override scrollWheel: in an NSScrollView subclass:
- (void)scrollWheel:(NSEvent *)theEvent
{
[super scrollWheel:theEvent];
[[self nextResponder] scrollWheel:theEvent];
}
Works great :-)
On 2011-04-28, at 6:53 PM, Kyle Sluder wrote:
> On Thu, Apr 28, 2011 at 5:07 PM, Indragie Karunaratne
> <email@hidden> wrote:
>> I have resized all my text views so that all the content is visible without vertical scrolling, and I have disabled the vertical scroller on its scroll view. I would remove it from the scroll view entirely and avoid this issue, but I still need the text view's scroll view to horizontally scroll text. Would I be able to subclass the text view's scroll view to pass scroll events to the parent scroll view?
>
> Why not just let the outer scroll view also scroll horizontally?
>
> --Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden