Skip to content

Commit f278251

Browse files
authored
0.6.3 overlap (#123)
1 parent 8bcd89f commit f278251

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fidget.nimble

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.6.2"
3+
version = "0.6.3"
44
author = "treeform"
55
description = "Fidget - UI Library"
66
license = "MIT"
@@ -19,4 +19,4 @@ requires "html5_canvas >= 1.3"
1919
requires "staticglfw >= 4.1.2"
2020
requires "cligen >= 1.0.0"
2121
requires "supersnappy >= 1.0.0"
22-
requires "bumpy >= 0.2.0"
22+
requires "bumpy >= 0.2.1"

src/fidget.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ proc mouseOverlapLogic*(): bool =
137137
(not popupActive or inPopup) and
138138
current.screenBox.w > 0 and
139139
current.screenBox.h > 0 and
140-
mouse.pos.inside(current.screenBox)
140+
mouse.pos.overlap(current.screenBox)
141141

142142
template onClick*(inner: untyped) =
143143
## On click event handler.

src/fidget/openglbackend.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ proc drawText(node: Node) =
8888

8989
let mousePos = mouse.pos - node.screenBox.xy
9090

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):
9292
# mouse actions click, drag, double clicking
9393
keyboard.focus(node)
9494
if mouse.click:

0 commit comments

Comments
 (0)