Kaynağa Gözat

fix checkbox

Ethosa 3 yıl önce
ebeveyn
işleme
0efb214a00
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      src/nodesnim/nodescontrol/checkbox.nim

+ 1 - 1
src/nodesnim/nodescontrol/checkbox.nim

@@ -97,5 +97,5 @@ method handle*(self: CheckBoxRef, event: InputEvent, mouse_on: var NodeRef) =
   procCall self.ControlRef.handle(event, mouse_on)
 
   if self.hovered and self.focused:
-    if event.kind == MOUSE and not mouse_pressed and event.button_index == 0:
+    if event.kind == MOUSE and mouse_pressed:
       self.toggle()