From 9a0516ca0d9e41d121e3d0a6ff0f9b351f4eabbe Mon Sep 17 00:00:00 2001 From: gucio321 <73652197+gucio321@users.noreply.github.com> Date: Sat, 23 Sep 2023 13:59:53 +0200 Subject: [PATCH] ImageWidget: fix OnClick method fix #702 --- ImageWidgets.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/ImageWidgets.go b/ImageWidgets.go index d31590e8..92398fcf 100644 --- a/ImageWidgets.go +++ b/ImageWidgets.go @@ -94,8 +94,6 @@ func (i *ImageWidget) Build() { cursorPos := GetCursorScreenPos() mousePos := GetMousePos() - mousePos = mousePos.Add(cursorPos) - if cursorPos.X <= mousePos.X && cursorPos.Y <= mousePos.Y && cursorPos.X+int(i.width) >= mousePos.X && cursorPos.Y+int(i.height) >= mousePos.Y { i.onClick()