Skip to content

Commit 520c5f8

Browse files
authored
fix: disabled split gutter interactions (#502)
1 parent d314cbd commit 520c5f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

projects/angular-split/src/lib/split/split.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,13 @@ export class SplitComponent {
254254
areaBeforeGutterIndex: number,
255255
areaAfterGutterIndex: number,
256256
) {
257+
e.preventDefault()
258+
e.stopPropagation()
259+
257260
if (this.disabled()) {
258261
return
259262
}
260263

261-
e.preventDefault()
262-
e.stopPropagation()
263-
264264
this.gutterMouseDownSubject.next({
265265
mouseDownEvent: e,
266266
gutterElement,

0 commit comments

Comments
 (0)