When I scroll a NSScrollView
using scrollToVisible
or scroll(_:)
method, I see they are slightly animated.
How to eliminate these animations?
When I scroll a NSScrollView
using scrollToVisible
or scroll(_:)
method, I see they are slightly animated.
How to eliminate these animations?
Just adjust clip view's bounding origin like this.
(superview as! NSClipView).bounds.origin = f.origin
This brings absolutely no animation, and you gonna see no stuttering.
Here's another sample how other people are using it.