When using ion-slide-box, the disable-scroll option does not work. Looking at the source code, I can see the following lines of code:
if (!(e.touches.length > 1 || e.scale && 1 !== e.scale)) {
t.disableScroll && e.preventDefault();
var i = e.touches[0];
x = { x: i.pageX - D.x, y: i.pageY - D.y }, "undefined" == typeof b && (b = !!(b || Math.abs(x.x) < Math.abs(x.y))), b || (e.preventDefault(), u(), t.continuous ? (a(r(E - 1), x.x + p[r(E - 1)], 0), a(E, x.x + p[E], 0), a(r(E + 1), x.x + p[r(E + 1)], 0)) : (x.x = x.x / (!E && x.x > 0 || E == g.length - 1 && x.x < 0 ? Math.abs(x.x) / m + 1 : 1), a(E - 1, x.x + p[E - 1], 0), a(E, x.x + p[E], 0), a(E + 1, x.x + p[E + 1], 0)))
}
The line “t.disableScroll && e.preventDefault();” does absolutely nothing except prevent default. Shouldn’t it look a little more like this:
if (!(e.touches.length > 1 || e.scale && 1 !== e.scale) && !t.disableScroll) {
...
}
Also, if disableScroll changes value then it should be updated. Should there be a .$watch("disableScroll", function (e) {...}
or something similar?
Anyone got any ideas on how to fix this temporarily or why this isn’t working for me?