File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
# Package
2
2
3
- version = " 0.6.2 "
3
+ version = " 0.6.3 "
4
4
author = " treeform"
5
5
description = " Fidget - UI Library"
6
6
license = " MIT"
@@ -19,4 +19,4 @@ requires "html5_canvas >= 1.3"
19
19
requires " staticglfw >= 4.1.2"
20
20
requires " cligen >= 1.0.0"
21
21
requires " supersnappy >= 1.0.0"
22
- requires " bumpy >= 0.2.0 "
22
+ requires " bumpy >= 0.2.1 "
Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ proc mouseOverlapLogic*(): bool =
137
137
(not popupActive or inPopup) and
138
138
current.screenBox.w > 0 and
139
139
current.screenBox.h > 0 and
140
- mouse.pos.inside (current.screenBox)
140
+ mouse.pos.overlap (current.screenBox)
141
141
142
142
template onClick* (inner: untyped ) =
143
143
# # On click event handler.
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ proc drawText(node: Node) =
88
88
89
89
let mousePos = mouse.pos - node.screenBox.xy
90
90
91
- if node.selectable and mouse.down and mouse.pos.inside (node.screenBox):
91
+ if node.selectable and mouse.down and mouse.pos.overlap (node.screenBox):
92
92
# mouse actions click, drag, double clicking
93
93
keyboard.focus(node)
94
94
if mouse.click:
You can’t perform that action at this time.
0 commit comments