Explorar el Código

Fixes scroll jumping issue on interactive settings

main
Eric Amodio hace 1 año
padre
commit
4c6331f438
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  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 fichero

@ -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 fichero

@ -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);

Cargando…
Cancelar
Guardar