mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
update to alpha.28)
domElement renamed to nativeElement
This commit is contained in:
@ -75,7 +75,7 @@ export class ParallaxEffect {
|
||||
constructor(
|
||||
elementRef: ElementRef
|
||||
) {
|
||||
this.domElement = elementRef.domElement;
|
||||
this.ele = elementRef.nativeElement;
|
||||
|
||||
setTimeout(() => {
|
||||
Object.observe(this, (changes) => {
|
||||
@ -88,7 +88,7 @@ export class ParallaxEffect {
|
||||
});
|
||||
}
|
||||
parallaxItems() {
|
||||
let list = this.domElement;
|
||||
let list = this.ele;
|
||||
console.log('Moving items', this.parallax);
|
||||
var x = Math.max(0, (1 - this.parallax) * 20);
|
||||
var y = 0;//Math.max(0, (1 - this.parallax) * 10);
|
||||
|
@ -37,8 +37,8 @@ export class ParallaxEffect {
|
||||
content: Content,
|
||||
elementRef: ElementRef
|
||||
) {
|
||||
this.domElement = elementRef.domElement;
|
||||
this.scroller = this.domElement.querySelector('.scroll-content');
|
||||
this.ele = elementRef.nativeElement;
|
||||
this.scroller = this.ele.querySelector('.scroll-content');
|
||||
this.scroller.addEventListener('scroll', (e) => {
|
||||
//this.counter.innerHTML = e.target.scrollTop;
|
||||
dom.raf(() => {
|
||||
|
Reference in New Issue
Block a user