mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 22:00:33 +08:00
fix(mobile): backdrop opacity jumping at start
This commit is contained in:
parent
5b1540e12b
commit
60adc84248
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ export default class SidebarContainer extends FlexContainer {
|
||||||
this.sidebarEl.style.transition = "none";
|
this.sidebarEl.style.transition = "none";
|
||||||
this.backdropEl.style.transition = "none";
|
this.backdropEl.style.transition = "none";
|
||||||
|
|
||||||
this.backdropEl.style.opacity = Math.max(0, 1 + (this.translatePercentage / 100));
|
this.backdropEl.style.opacity = (this.currentTranslate === -100 ? 0 : 1);
|
||||||
this.backdropEl.classList.add("show");
|
this.backdropEl.classList.add("show");
|
||||||
|
|
||||||
this.dragState = DRAG_STATE_DRAGGING;
|
this.dragState = DRAG_STATE_DRAGGING;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue