Skip to content

Commit

Permalink
fix: check onMouseDown event is cancelable before calling event.preve…
Browse files Browse the repository at this point in the history
…ntDefault() (#133)
  • Loading branch information
danhobbs75 committed Dec 13, 2022
1 parent 6f821be commit 4438bab
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export class ResizeHandleDirective implements OnInit, OnDestroy {
clientX: number,
clientY: number
): void {
event.preventDefault();
if (event.cancelable) {
event.preventDefault();
}
if (!this.eventListeners.touchmove) {
this.eventListeners.touchmove = this.renderer.listen(
this.element.nativeElement,
Expand Down

0 comments on commit 4438bab

Please sign in to comment.