Skip to content

Commit f98107b

Browse files
committed
Move thin scrollbars to show only after scrolling has started and not on touchstart.
In the new iOS 13 when clicking some element inside igScroll's content it cancels transitions too fast for the scrollbar animations and causes native events instability.
1 parent ba2a81c commit f98107b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/js/modules/infragistics.ui.scroll.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,8 +2421,6 @@
24212421
this._offsetDirection = 0;
24222422

24232423
this._igScollTouchPrevented = false;
2424-
2425-
this._showScrollbars(true);
24262424
},
24272425

24282426
_onTouchMoveContainer: function (event) {
@@ -2510,11 +2508,12 @@
25102508
}
25112509

25122510
if (scrolledXY.x === 0 && scrolledXY.y === 0) {
2513-
this._igScollTouchPrevented = true;
2511+
this._igScollTouchPrevented = true;
25142512
}
25152513

25162514
//On Safari preventing the touchmove would prevent default page scroll behaviour even if there is the element doesn't have overflow
25172515
if (!this._igScollTouchPrevented && event.cancelable) {
2516+
this._showScrollbars(true);
25182517
event.preventDefault();
25192518
}
25202519
},

0 commit comments

Comments
 (0)