prevent page scroll
This commit is contained in:
committed by
Jacob Overgaard
parent
9709718fa3
commit
646e05cb59
@@ -240,6 +240,7 @@ export class UmbSplitPanelElement extends LitElement {
|
||||
}
|
||||
|
||||
if (event.key === 'Home' || event.key === 'End') {
|
||||
event.preventDefault();
|
||||
const { width } = this.mainElement.getBoundingClientRect();
|
||||
const newPos = event.key === 'Home' ? 0 : width;
|
||||
this.#setPosition(newPos);
|
||||
|
||||
Reference in New Issue
Block a user