Horizontal-only scrolling
Horizontal-only scrolling
- Subject: Horizontal-only scrolling
- From: Petteri Kamppuri <email@hidden>
- Date: Tue, 20 Nov 2007 17:23:08 +0200
Hi!
I have a view that's inside an NSScrollView. My view isn't very tall,
and can easily fit vertically in the scroll view. However, the view
can be very wide, that's why it's in the scroll view in the first place.
What I'd like is that normal scroll wheel events would cause the
scroll view to scroll horizontally (the only way it can scroll).
Currently the user has to hold down the shift key to achieve
horizontal scrolling (or use Mighty Mouse or something, I haven't
tested, I don't like or use the Mighty Mouse :).
Does anyone know an elegant solution to either for converting verical
scroll events to horizontal or otherwise force the scroll view to
always scroll horizontally, even when istructed to scroll vertically?
-scrollWheel: would be nice, if I could convert the NSEvent to
horizontal scrolling from vertical scrolling, but NSEvent API doesn't
seem to make that possible (maybe by subclassing NSEvent?).
Thanks for any help!
Regargs,
Petteri Kamppuri
_______________________________________________
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