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

`onSelected`: Keep default behavior of events #180

Open
farzadab opened this issue Apr 29, 2020 · 2 comments
Open

`onSelected`: Keep default behavior of events #180

farzadab opened this issue Apr 29, 2020 · 2 comments

Comments

@farzadab
Copy link

@farzadab farzadab commented Apr 29, 2020

Is there any way to keep the default behavior of events while providing a handler?

From what I understand from this post, unless the overridden function returns false the default behavior should be kept. However, when I provide an onSelected method the default behavior doesn't happen, no matter what the returned value is.
TBH, I'm not sure whether what I'm asking for is the expected behavior, but depending on the answer you can interpret this question as a feature request or a request for document clarification.

To make this more clear, what I see when onSelected is not provided is that the selected area stays active even after mouse is released and you can even select multiple regions like so:
image
However, when onSelected is provided, the selected region disappears after the mouse is released and I cannot reproduce the same behavior (at least not so easily).
To give you more context, my specific use-case here is to be able to download the information of the selected points using a separate button that I have created, so the default visual response works well for me.

@giva9712
Copy link

@giva9712 giva9712 commented Jun 3, 2020

@farzadab Have you resolved? I am faced with the same problem. :(

@farzadab
Copy link
Author

@farzadab farzadab commented Jun 3, 2020

No, I didn't have many clues to go on really.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.