diff --git a/website/docs/guides/mouse-buttons.mdx b/website/docs/guides/mouse-buttons.mdx index 8e903a53..0a3a4574 100644 --- a/website/docs/guides/mouse-buttons.mdx +++ b/website/docs/guides/mouse-buttons.mdx @@ -1,7 +1,8 @@ # Mouse Buttons The Wails runtime intercepts mouse clicks to determine whether a frameless window needs resizing or a window needs to be moved. -It has been asked how to detect when a mouse click has occurred. The following code shows how to detect mouse clicks: +It has been asked how to detect when a mouse click has occurred, because `window.onclick` doesn't report the mouse buttons correctly. +The following code shows how to detect mouse clicks: ```javascript @@ -24,4 +25,4 @@ function handleMouseButtonDown(event) { } ``` -Reference: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button \ No newline at end of file +Reference: https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button