Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Add support for iOS8 scroll events.
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpschaaf committed Sep 26, 2014
1 parent e1a0e5d commit d9c7d44
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@
this._target = target;
this._target.addEventListener('scroll', this._boundScrollHandler, false);
}
// Only use -webkit-overflow-touch from iOS8+, where scroll events are fired
var ios = navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/);
if (ios && ios[1] >= 8) {
target.style.webkitOverflowScrolling = 'touch';
}

this.initializeData();
},
Expand Down

0 comments on commit d9c7d44

Please sign in to comment.