fix(scroll): fix content dimensions for js scrolling

This commit is contained in:
Adam Bradley
2016-12-09 21:06:22 -06:00
parent 0e081583a8
commit c510100ca1
3 changed files with 35 additions and 37 deletions

View File

@@ -186,17 +186,11 @@ export class ScrollView {
console.debug(`ScrollView, enableJsScroll`);
const ev = self.ev;
const positions: number[] = [];
let rafCancel: Function;
let max: number;
const ev = self.ev;
ev.scrollLeft = 0;
ev.startX = 0;
ev.deltaX = 0;
ev.velocityX = 0;
ev.directionX = null;
function setMax() {
if (!max) {
// ******** DOM READ ****************
@@ -330,7 +324,7 @@ export class ScrollView {
} else {
self.isScrolling = false;
ev.velocityY = ev.velocityX = 0;
ev.velocityY = 0;
self.scrollEnd.next(ev);
}