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

fix: double click event handling (in DOM environments) #114

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

tpoisseau
Copy link
Contributor

It's needed for https://github.com/cheminfo/openchemlib-js project

DOM pointerdown and pointerup do not contain number of click in detail like click events.
So I tweak GenericEditorArea.eventHappened to call handleDoubleClick on GenericMouseEvent.MOUSE_CLICKED

Refs: cheminfo/openchemlib-js#232

It's needed for https://github.com/cheminfo/openchemlib-js project

DOM `pointerdown` and `pointerup` do not contain number of click in `detail` like `click` events.
So I tweak `GenericEditorArea.eventHappened` to call `handleDoubleClick` on `GenericMouseEvent.MOUSE_CLICKED`

Refs: cheminfo/openchemlib-js#232
@artaius artaius requested a review from thsa October 10, 2024 11:42
@artaius
Copy link
Contributor

artaius commented Oct 10, 2024

@thsa Can you please review and accept the PR. We need this change in context of the OCL-JS Vaadin project. Many thanks...

@thsa thsa merged commit 85c460a into Actelion:master Oct 11, 2024
3 checks passed
tpoisseau added a commit to cheminfo/openchemlib-js that referenced this pull request Oct 14, 2024
add comment to not forget `event.detail` on `pointerup` / `pointerdown` do not have clickCount information

Refs: Actelion/openchemlib#114
Closes: #225
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

Successfully merging this pull request may close these issues.

3 participants