restore paper-drawer-panel.html changes
This commit is contained in:
parent
b65adf700f
commit
bc2fd54fda
1 changed files with 14 additions and 5 deletions
|
@ -591,8 +591,8 @@ Custom property | Description | Default
|
||||||
this.notifyResize();
|
this.notifyResize();
|
||||||
}
|
}
|
||||||
if (e.propertyName === 'transform' && this.selected === 'drawer') {
|
if (e.propertyName === 'transform' && this.selected === 'drawer') {
|
||||||
var focusedChild = this._getAutoFocusedNode();
|
//var focusedChild = this._getAutoFocusedNode();
|
||||||
focusedChild && focusedChild.focus();
|
//focusedChild && focusedChild.focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -761,6 +761,12 @@ Custom property | Description | Default
|
||||||
}
|
}
|
||||||
this._setPeeking(false);
|
this._setPeeking(false);
|
||||||
}
|
}
|
||||||
|
var dy = event.detail.dy;
|
||||||
|
var absDy = Math.abs(dy);
|
||||||
|
if (absDy >= 70) {
|
||||||
|
// Ignore trackx until we move past the edge peek.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._moveDrawer(this._translateXForDeltaX(dx));
|
this._moveDrawer(this._translateXForDeltaX(dx));
|
||||||
}
|
}
|
||||||
|
@ -775,10 +781,13 @@ Custom property | Description | Default
|
||||||
sharedPanel = null;
|
sharedPanel = null;
|
||||||
this._moveDrawer(null);
|
this._moveDrawer(null);
|
||||||
|
|
||||||
|
var dx = event.detail.dx;
|
||||||
|
var dy = event.detail.dy;
|
||||||
|
var absDy = Math.abs(dy);
|
||||||
if (this.rightDrawer) {
|
if (this.rightDrawer) {
|
||||||
this[xDirection ? 'closeDrawer' : 'openDrawer']();
|
this[xDirection ? 'closeDrawer' : 'openDrawer']();
|
||||||
} else {
|
} else {
|
||||||
this[xDirection ? 'openDrawer' : 'closeDrawer']();
|
this[xDirection || dx > -80 || absDy >= 70 ? 'openDrawer' : 'closeDrawer']();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -827,7 +836,7 @@ Custom property | Description | Default
|
||||||
|
|
||||||
if (!focusedChildCameFromDrawer) {
|
if (!focusedChildCameFromDrawer) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
autoFocusedNode.focus();
|
//autoFocusedNode.focus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue