mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(scroll): fix content dimensions for js scrolling
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user