Skip to content

Commit e7196c9

Browse files
committed
Try to fix restriction and snap with resize
1 parent 03cd995 commit e7196c9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

interact.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,10 @@
10521052

10531053
action = action || prepared;
10541054

1055+
if (/^resize/.test(action)) {
1056+
action = 'resize';
1057+
}
1058+
10551059
return (options.snapEnabled && indexOf(options.snap.actions, action) !== -1);
10561060
}
10571061

@@ -1060,6 +1064,10 @@
10601064

10611065
action = action || prepared;
10621066

1067+
if (/^resize/.test(action)) {
1068+
action = 'resize';
1069+
}
1070+
10631071
return options.restrictEnabled && options.restrict[action];
10641072
}
10651073

0 commit comments

Comments
 (0)