Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
- Subject: Re: Scrolling NSScrollView by fractional amounts - why would values get rounded?
- From: Martin Redington <email@hidden>
- Date: Fri, 11 Sep 2009 10:04:11 +0100
Copy on scroll is off for both views - with it set on, I get smearing,
but only in the view that's working with fractional amounts (i.e. not
rounding off).
In this particular case, I actually want slow, but smooth, scrolling,
and the ability to change the scrolling speed in very fine increments,
and the rendering speeds I'm getting are acceptable so far ...
On Fri, Sep 11, 2009 at 5:16 AM, Graham Cox <email@hidden> wrote:
>
> On 11/09/2009, at 4:41 AM, Jens Alfke wrote:
>
>>> This works fine when the new y value is a whole integer, but I'm
>>> seeing some strange behaviour when trying to scroll by fractional
>>> amount (e.g. .25 or .5 of a pixel).
>>
>> Are you sure you want to scroll by fractional pixels? It will be slower,
>> because the view has to re-render from scratch, instead of letting the video
>> card scroll the pixels.
>
> Is one set to copy on scroll and the other not?
>
> But yes, it's a bad idea, IMO.
>
> --Graham
>
>
--
http://www.mildmanneredindustries.com/
_______________________________________________
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