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

Mouse Click Event ignored on Window #18

Open
bigDevDe opened this issue Jun 24, 2014 · 1 comment
Open

Mouse Click Event ignored on Window #18

bigDevDe opened this issue Jun 24, 2014 · 1 comment

Comments

@bigDevDe
Copy link

When retrieving a Window for a node, the mouse click event is ignored (e.g. mouse entered does its job!):

VFlow vFlow ...;
VNode vNode ...;

vFlow.getNodeSkinsById(vNode.getId()).stream()
.filter(s -> s instanceof FXFlowNodeSkin)
.map(s -> ((FXFlowNodeSkin) s).getNode())
.forEach(window -> {

            // MouseClick IGNORED!!!!
            window.setOnMouseClicked(mouseEvent ->  System.out.println("Clicked!"));

        });
@miho
Copy link
Owner

miho commented Jul 2, 2014

The setOnMouse...(...) methods are used internally by the JFXtras window control. This is bad design and should be fixed. Feel free to report the bug there. I'll fix it ASAP.

Workaround: use event handlers instead.

Demo Application: https://gist.github.com/miho/6fbe03741174aff3083d

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

No branches or pull requests

2 participants