fixed custom element change page gadget events in level editor 4.3.5.3
authorHolger Schemel <info@artsoft.org>
Sat, 1 Apr 2023 10:50:02 +0000 (12:50 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 1 Apr 2023 10:50:02 +0000 (12:50 +0200)
src/editor.c

index 8e66e99c3d0c97f021bc5e702b43750a42db66ba..fc122b245a5e44ba39fb617ce8b1e79e32effd12 100644 (file)
@@ -7050,7 +7050,7 @@ static void CreateGraphicbuttonGadgets(void)
     int gd_y1 = gd->src_y;
     int gd_x2 = gd->src_x + gd->pressed_xoffset;
     int gd_y2 = gd->src_y + gd->pressed_yoffset;
-    unsigned int event_mask = GD_EVENT_PRESSED | GD_EVENT_REPEATED;
+    unsigned int event_mask = GD_EVENT_RELEASED;
 
     // determine horizontal position to the right of specified gadget
     if (graphicbutton_info[i].gadget_id_align != GADGET_ID_NONE)