Skip to content

Commit 2867fa0

Browse files
added outside click option for closing of piemenu for grid menu
1 parent 7290ce6 commit 2867fa0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

js/piemenus.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3652,7 +3652,7 @@ const piemenuGrid = (activity) => {
36523652
activity.turtles._exitWheel.slicePathCustom.minRadiusPercent = 0.0;
36533653
activity.turtles._exitWheel.slicePathCustom.maxRadiusPercent = 0.3;
36543654
activity.turtles._exitWheel.sliceSelectedPathCustom =
3655-
activity.turtles._exitWheel.slicePathCustom;
3655+
activity.turtles._exitWheel.slicePathCustom;
36563656
activity.turtles._exitWheel.sliceInitPathCustom = activity.turtles._exitWheel.slicePathCustom;
36573657
activity.turtles._exitWheel.clickModeRotate = false;
36583658
activity.turtles._exitWheel.createWheel(["×", " "]);
@@ -3670,7 +3670,8 @@ const piemenuGrid = (activity) => {
36703670
activity.turtles.gridWheel.removeWheel();
36713671
activity.turtles._exitWheel.removeWheel();
36723672
};
3673-
const clickOutsideHandler = (event) => {
3673+
3674+
const clickOutsideHandler = (event) => {
36743675
const piemenu = docById("wheelDivptm");
36753676
if (!piemenu.contains(event.target)) {
36763677
hidePiemenu(activity);

0 commit comments

Comments
 (0)