Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Implements issue #256 #279

Merged
merged 2 commits into from
Aug 16, 2012
Merged

Implements issue #256 #279

merged 2 commits into from
Aug 16, 2012

Conversation

jcarty
Copy link
Collaborator

@jcarty jcarty commented Aug 15, 2012

See #256 for more info.

Usage:

bb.init({
   screen: {
       bounce: false,
       onScrollMove: function(e) {
           // Handle scroll move
       },
       // and more ...
   }
});

@tneil
Copy link
Collaborator

tneil commented Aug 16, 2012

Can you also apply the changes to the bbui-0.9.4.js in the samples directory

Also, could you possibly list all the properties that are supported to pass in with the screen property. It will help me document it on the wiki :o)

@jcarty
Copy link
Collaborator Author

jcarty commented Aug 16, 2012

Properties:

x: 0,
y: 0,
bounce: true,
bounceLock: false,
momentum: true,
lockDirection: true,
useTransform: true,
useTransition: false,
topOffset: 0,
handleClick: true,

// Scrollbar
hScrollbar: true,
vScrollbar: true,
scrollbarClass: '',

// Zoom
zoom: false,
zoomMin: 1,
zoomMax: 4,
doubleTapZoom: 2,
wheelAction: 'scroll',

// Snap
snap: false,
snapThreshold: 1,

// Events
onRefresh: null,
onBeforeScrollStart: null,
onScrollStart: null,
onBeforeScrollMove: null,
onScrollMove: null,
onBeforeScrollEnd: null,
onScrollEnd: null,
onTouchEnd: null,
onDestroy: null,
onZoomStart: null,
onZoom: null,
onZoomEnd: null

tneil pushed a commit that referenced this pull request Aug 16, 2012
@tneil tneil merged commit bf341db into blackberry:next Aug 16, 2012
@tneil
Copy link
Collaborator

tneil commented Aug 16, 2012

Details listed at the bottom of this wiki page

@XiaoZhang1
Copy link

In my opinion the 'scroll-panel' needs this settings too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants