1

When I scroll a NSScrollView using scrollToVisible or scroll(_:) method, I see they are slightly animated.

How to eliminate these animations?

eonil
  • 83,476
  • 81
  • 317
  • 516

1 Answers1

1

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.

eonil
  • 83,476
  • 81
  • 317
  • 516