Ver código fonte

Fixes scroll jumping issue on interactive settings

main
Eric Amodio 1 ano atrás
pai
commit
4c6331f438
2 arquivos alterados com 2 adições e 2 exclusões
  1. +1
    -1
      src/webviews/apps/settings/settings.scss
  2. +1
    -1
      src/webviews/apps/shared/appWithConfigBase.ts

+ 1
- 1
src/webviews/apps/settings/settings.scss Ver arquivo

@ -249,7 +249,7 @@ header {
.image__preview {
display: flex;
width: auto;
width: 100%;
margin-top: 1em;
}
}

+ 1
- 1
src/webviews/apps/shared/appWithConfigBase.ts Ver arquivo

@ -356,7 +356,7 @@ export abstract class AppWithConfig extends Ap
const newTop =
el.getBoundingClientRect().top - document.body.getBoundingClientRect().top - (offset ?? 0);
if (top === newTop) return;
if (Math.abs(top - newTop) < 2) return;
this.scrollTo(el, behavior, offset);
}, 50);

Carregando…
Cancelar
Salvar