mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
Scroll stuff
This commit is contained in:
@ -52,7 +52,6 @@ export class Scroll extends Ion {
|
||||
if(this.zoomElement) {
|
||||
|
||||
this.zoomElement.parentElement.style[CSS.transform] = '';
|
||||
|
||||
this.zoomElement.style[CSS.transform] = 'scale(1)';
|
||||
}
|
||||
|
||||
@ -108,6 +107,7 @@ export class Scroll extends Ion {
|
||||
} else if(-posX > viewportWidth) {
|
||||
// Too far on the right side, let the event bubble up (to enable slider on edges, for example)
|
||||
} else {
|
||||
console.log('TRANSFORM', posX);
|
||||
this.zoomElement.parentElement.style[CSS.transform] = 'translateX(' + posX + 'px) translateY(' + posY + 'px)';
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
|
Reference in New Issue
Block a user