Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mac OS - JS mousedown is not working properly #1101

Closed
PSK144 opened this issue Mar 12, 2024 · 2 comments
Closed

Mac OS - JS mousedown is not working properly #1101

PSK144 opened this issue Mar 12, 2024 · 2 comments

Comments

@PSK144
Copy link

PSK144 commented Mar 12, 2024

Mouse down event handling is not working properly in Mac OS. Exactly says it is working like mouse click

What OS are you using (uname -a, or Windows version)?

Mac all currently supported versions

What programming language are you using (C/C++/Go/Rust)?

GO

What did you expect to see and what you saw instead?

I have a warning box inside my window which is just a div not a separate window.
Added an event listener for the warning box header so that i can drag the div inside my application.
For that, once the mouse down on the header mouse move listener will be triggered.
So, the mouse movements will be traced and window will be repositioned dynamically based on that.

Expected behaviour is mouse clicked down, hold and drag(mouse move)
Actual behaviour is mouse clicked, drag(mouse move listener) only trigger after the mouse up. But is should not be.

In other words, mousemove event not triggered till the mousedown event in action finished.

@SteffenL
Copy link
Collaborator

Since there's no code here to help reproduce the issue, I suggest modifying the basic example to navigate to https://javascript.info/mouse-drag-and-drop, then compare the behavior with Safari.

If mouse dragging behavior is different then we need to figure out what's going on.

@PSK144
Copy link
Author

PSK144 commented Mar 29, 2024

Thanks for the suggestion. As you said, I have tried and figured out the issue which is caused by my changes in the webview package.

I have created a custom draggable area for the window. To capture the event, created a windows sized invisible NSView over the webview layer. That's why the event interrupted. Now resized the invisible window to the exact area where it needed.

The issue resolved now. Thanks for the help. I'm closing this issue. If need pls delete the issue.

@PSK144 PSK144 closed this as completed Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants