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] Mouse Up/Down events triggering on move #669

Open
thomasuster opened this issue Jun 19, 2020 · 1 comment
Open

[mac] Mouse Up/Down events triggering on move #669

thomasuster opened this issue Jun 19, 2020 · 1 comment
Labels

Comments

@thomasuster
Copy link
Member

  1. Add the following to a nme/sample project.
stage.addEventListener(MouseEvent.MOUSE_UP, onMouseUp);
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
...
    function onMouseUp(event:MouseEvent):Void {
        trace("mouse up");
    }

    function onMouseDown(event:MouseEvent):Void {
        trace("mouse down");
    }
  1. haxelib run nme mac
  2. Move mouse around without clicking
    Expected: Nothing should print
    Result: Both seem to trigger when the mouse starts and stops
@thomasuster
Copy link
Member Author

FYI on MacOS Catalina 10.15.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant