From ece4b2a9aae77750751176c1e5e5cdee3847a177 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 5 Apr 2025 20:07:21 +0900 Subject: [PATCH 1/4] debugui: v0.1.0 released From 97244baa8a7110e2a08dbf967f207a04fe17a53b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 5 Apr 2025 23:22:45 +0900 Subject: [PATCH 2/4] all: update README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dbe84d2..1371ef8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ DebugUI is a UI toolkit for Ebitengine applications, primarily intended for debugging purposes. -**The project is currently under development. The API is subject to frequent changes. Please do not use it in production.** +**The project is currently under development. The API is subject to frequent changes.** DebugUI is based on [Microui](https://github.com/rxi/microui). The original Microui was developed by [@rxi](https://github.com/rxi/microui). The original Go port was developed by [@zeozeozeo](https://github.com/zeozeozeo) and [@Zyko0](https://github.com/Zyko0). From 425199031cca11bcc51f2275dd6ba4367c6bdfb9 Mon Sep 17 00:00:00 2001 From: Mike Nye Date: Fri, 2 May 2025 11:18:37 +0800 Subject: [PATCH 3/4] debugui: update InputCapturingStateHover calculation to support collapsed panels (#35) Closes #34 --- context.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/context.go b/context.go index dd06ade..ad7c4a3 100644 --- a/context.go +++ b/context.go @@ -96,7 +96,11 @@ func (c *Context) update(f func(ctx *Context) error) (inputCapturingState InputC // Check whether the cursor is on any of the root containers. pt := c.pointingPosition() for _, cnt := range c.rootContainers { - if pt.In(cnt.layout.Bounds) { + bounds := cnt.layout.Bounds + if cnt.collapsed { + bounds.Max.Y = cnt.layout.BodyBounds.Min.Y + } + if pt.In(bounds) { inputCapturingState |= InputCapturingStateHover } } From 25cf29bb3f97bdf9237690c6b9185523fde6cca4 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 23 Sep 2025 17:46:46 +0900 Subject: [PATCH 4/4] debugui: bug fix: pointingDelta should return (0, 0) for a new touch Closes #45 --- widget.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/widget.go b/widget.go index 1d03c6a..1551e54 100644 --- a/widget.go +++ b/widget.go @@ -44,6 +44,10 @@ func (c *Context) pointingOver(bounds image.Rectangle) bool { } func (c *Context) pointingDelta() image.Point { + // The delta is always (0, 0) when a touch just started. + if c.pointing.isTouchActive() && c.pointing.justPressed() { + return image.Point{} + } return c.pointingPosition().Sub(c.lastPointingPos) }