Prevent slide right on last and left on first

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