You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
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.
The text was updated successfully, but these errors were encountered: