Skip to content

Commit

Permalink
Move thin scrollbars to show only after scrolling has started and not…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
skrustev committed Jun 9, 2020
1 parent 3fa4abe commit ebc46cb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/js/modules/infragistics.ui.scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -2421,8 +2421,6 @@
this._offsetDirection = 0;

this._igScollTouchPrevented = false;

this._showScrollbars(true);
},

_onTouchMoveContainer: function (event) {
Expand Down Expand Up @@ -2510,11 +2508,12 @@
}

if (scrolledXY.x === 0 && scrolledXY.y === 0) {
this._igScollTouchPrevented = true;
this._igScollTouchPrevented = true;
}

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

0 comments on commit ebc46cb

Please sign in to comment.