cocoa - OS X Lion scroll direction and NSSlider -
my application has horizontal nsslider acting volume control , lion's new "natural" (inverted) scroll direction behaves wrong. when slide left moves right , vice versa. according can see in lion's itunes apple planned should work same regardless of setting, when slide left should move slider left , vice versa. question how can find out mouse scroll inverted or not? or maybe can somehow raw deltax/deltay values, without invention applied?
ask event if isdirectioninvertedfromdevice
, , multiply delta -1 if so.
Comments
Post a Comment