Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent slide right on last and left on first #1405

Closed
wants to merge 1 commit into from
Closed

Prevent slide right on last and left on first #1405

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 15, 2014

When continuous was disabled, user could slide right on last or left on first and they received empty view.

Problem was of the order of operations which calculate isPastBounds.

a = true
b = true
c = false
d = false

earlier it was calculate:

a && b | c && d = true | false && false = true && false = false

after change

(a && b) | (c && d) = true | false = true

When continuous was disabled, user could slide right on last or left on first and they received empty view.

Problem was of the order of operations which calculate isPastBounds.

a = true
b = true
c = false
d = false

earlier it was calculate:

a && b | c && d = true | false && false = true & false = false

after change

(a && b) | (c && d) = true | false = true
@ajoslin
Copy link
Contributor

ajoslin commented May 15, 2014

My fault, I changed this to fix jshint errors.

I'll review this a little later today and see if we can merge it. Thanks @evenemento !

@ajoslin
Copy link
Contributor

ajoslin commented May 19, 2014

Fixed via ec5a276

@ajoslin ajoslin closed this May 19, 2014
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.

1 participant