Skip to content

Commit

Permalink
Merge pull request #2073 from IgniteUI/skrastev/fix-267598-20.1
Browse files Browse the repository at this point in the history
Move thin scrollbars to show only after scrolling has started and not on touchstart.
  • Loading branch information
ChronosSF authored Jun 19, 2020
2 parents 3fa4abe + ebc46cb commit b1ff57b
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 b1ff57b

Please sign in to comment.