Skip to content

Add support to enable and disable scrolling as well a fix for fling disable#453

Closed
fouadkada wants to merge 6 commits intoalamkanak:developfrom
fouadkada:develop
Closed

Add support to enable and disable scrolling as well a fix for fling disable#453
fouadkada wants to merge 6 commits intoalamkanak:developfrom
fouadkada:develop

Conversation

@fouadkada
Copy link
Copy Markdown

No description provided.

@fouadkada
Copy link
Copy Markdown
Author

make id of type object so that an id can be a string. useful when fetching events from a server and each event has a string ID


mCurrentFlingDirection = mCurrentScrollDirection;

if ((mCurrentFlingDirection == Direction.LEFT && !mHorizontalFlingEnabled) ||
Copy link
Copy Markdown

@ccparram ccparram Jan 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thinks is necessary add a new validation here, to disable the fling if scroll is disabled.

if ((mCurrentFlingDirection == Direction.LEFT && !mHorizontalFlingEnabled || !mHorizontalScrollEnabled) || (mCurrentFlingDirection == Direction.RIGHT && !mHorizontalFlingEnabled || !mHorizontalScrollEnabled) || (mCurrentFlingDirection == Direction.VERTICAL && !mVerticalFlingEnabled || !mVerticalScrollEnabled)) { return true; }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where exactly ?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants