Implements fading overlaid scrollers. #860

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
1 participant
Owner

dcporter commented Oct 29, 2012

Although iOS-looking gray overlaid scrollers have been in the framework for a while, they don't fade. This implements fading, which in the case of overlaid scrollers becomes the default behavior. Scrollers can implement their own fading code if they prefer.

Owner

dcporter commented Jan 9, 2014

Bump. I tweaked this code last night, added some improvements and consolidated the commits, and I think it's ready to come over to master. I'd like someone else's eyes on it first though, could someone give this a look?

You can swap the default thick blue scrollers for the thin, overlaid fading ones, even on desktop, like this:

myScrollingView: SC.ScrollView.extend({
  verticalOverlay: YES,
  verticalScrollerView: SC.TouchScrollerView,
  contentView: ...
})

That process should be more intuitive of course, but removing the touch/no-touch code from SC.ScrollView is out of scope for this pull req.

dcporter added some commits Jan 11, 2014

@dcporter dcporter Renames SC.TouchScrollerView to SC.OverlayScrollerView. Retains a cop…
…y on SC.TouchScrollerView with developer warning. Improves SC.ScrollerView documentation.
11f2b13
@dcporter dcporter Improves documentation for SC.ScrollView. d9a5745

dcporter closed this Jan 11, 2014

dcporter deleted the team/dcporter/scrollfade branch Jan 11, 2014

Owner

dcporter commented Jan 11, 2014

And in it goes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment