mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
refactor(components): update to latest stencil api
This commit is contained in:
@ -60,7 +60,7 @@ export class Gesture {
|
||||
Ionic.listener.enable(this, 'touchstart', true, this.attachTo);
|
||||
Ionic.listener.enable(this, 'mousedown', true, this.attachTo);
|
||||
|
||||
Ionic.dom.write(() => {
|
||||
Core.dom.write(() => {
|
||||
applyStyles(getElementReference(this.$el, this.attachTo), GESTURE_INLINE_STYLES);
|
||||
});
|
||||
}
|
||||
@ -178,7 +178,7 @@ export class Gesture {
|
||||
if (!this.isMoveQueued) {
|
||||
this.isMoveQueued = true;
|
||||
|
||||
Ionic.dom.write(() => {
|
||||
Core.dom.write(() => {
|
||||
this.isMoveQueued = false;
|
||||
detail.type = 'pan';
|
||||
|
||||
|
@ -44,7 +44,7 @@ export class Scroll implements IScroll {
|
||||
if (!self.queued && self.enabled) {
|
||||
self.queued = true;
|
||||
|
||||
Ionic.dom.read(function(timeStamp) {
|
||||
Core.dom.read(function(timeStamp) {
|
||||
self.queued = false;
|
||||
self.onScroll(timeStamp || Date.now());
|
||||
});
|
||||
@ -127,7 +127,7 @@ export class Scroll implements IScroll {
|
||||
// haven't scrolled in a while, so it's a scrollend
|
||||
self.isScrolling = false;
|
||||
|
||||
Ionic.dom.read(function(timeStamp) {
|
||||
Core.dom.read(function(timeStamp) {
|
||||
if (!self.isScrolling) {
|
||||
self.onEnd(timeStamp);
|
||||
}
|
||||
@ -315,7 +315,7 @@ export class Scroll implements IScroll {
|
||||
if (easedT < 1) {
|
||||
// do not use DomController here
|
||||
// must use nativeRaf in order to fire in the next frame
|
||||
Ionic.dom.raf(step);
|
||||
Core.dom.raf(step);
|
||||
|
||||
} else {
|
||||
stopScroll = true;
|
||||
@ -329,8 +329,8 @@ export class Scroll implements IScroll {
|
||||
self.isScrolling = true;
|
||||
|
||||
// chill out for a frame first
|
||||
Ionic.dom.write(() => {
|
||||
Ionic.dom.write(timeStamp => {
|
||||
Core.dom.write(() => {
|
||||
Core.dom.write(timeStamp => {
|
||||
startTime = timeStamp;
|
||||
step(timeStamp);
|
||||
});
|
||||
|
Reference in New Issue
Block a user