Skip to content

Commit

Permalink
prevent page scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
JesmoDev authored and iOvergaard committed Jun 24, 2024
1 parent 4f59f41 commit c321877
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c321877

Please sign in to comment.