Skip to content
Snippets Groups Projects
Commit 1ab14422 authored by jojohoch's avatar jojohoch
Browse files

[player] Fix scrolling of page when opening keyboard

parent c291e86e
No related branches found
No related tags found
No related merge requests found
Pipeline #38437 failed
......@@ -6,7 +6,7 @@ export enum LogLevel { LOG = 0, INFO = 1, WARN = 2, ERROR = 3, NONE = 4}
providedIn: 'root'
})
export class LogService {
static level: LogLevel = 1;
static level: LogLevel = 2;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
static error(...args: any[]): void {
......
......@@ -34,7 +34,9 @@ export class KeyboardService extends InputService {
private scrollElement = (element: HTMLElement): void => {
if (this.isHiddenByKeyboard(element)) {
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
setTimeout(() => {
element.scrollIntoView({ behavior: 'smooth', block: 'center' });
}, 200);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment