I have a scroll view that can only scroll in the horizontal direction. I have:
scrollView.horizontalScrollElasticity = NSScrollElasticityNone;
For the most part, this works. But if the document view becomes quite wide and I scroll left real hard, the scroll view bounces anyway. In the document view I can catch it sometimes in adjustScroll:
-(NSRect)adjustScroll:(NSRect)proposedVisibleRect
{
if (proposedVisibleRect.origin.x < 0.0)
{
NSLog(@"scroll view is going to bounce anyway....");
proposedVisibleRect.origin.x = 0.0;
}
return proposedVisibleRect;
}
If I modify the proposed visible rect x origin to 0.0 (as done above) the scroll view "jitters" and it looks bad.