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

synthetic dblclick events relate to left button #6628

Merged
merged 1 commit into from Apr 30, 2019

Conversation

IvanSanchez
Copy link
Member

This is a backport of https://cgit.freedesktop.org/libreoffice/online/commit/?id=d0906c12d82e0242b0709349979a9061da9c6a83 - synthetic dblclick events spawned from DomEvent.DoubleTap.js shall refer to button 0, so double taps can be interpreted as double clicks of the left button (instead of double clicks of an undefined button).

This is a backport of https://cgit.freedesktop.org/libreoffice/online/commit/?id=d0906c12d82e0242b0709349979a9061da9c6a83 - synthetic `dblclick` events spawned from `DomEvent.DoubleTap.js` shall refer to [button 0](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button#Return_value), so double taps can be interpreted as double clicks of the *left* button (instead of double clicks of an *`undefined`* button).
Copy link
Sponsor Collaborator

@cherniavskii cherniavskii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@cherniavskii cherniavskii merged commit 148cba8 into master Apr 30, 2019
@cherniavskii cherniavskii deleted the dblblick-button-0 branch April 30, 2019 09:15
Schleuse pushed a commit to Schleuse/Leaflet that referenced this pull request Dec 3, 2019
This is a backport of https://cgit.freedesktop.org/libreoffice/online/commit/?id=d0906c12d82e0242b0709349979a9061da9c6a83 - synthetic `dblclick` events spawned from `DomEvent.DoubleTap.js` shall refer to [button 0](https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/button#Return_value), so double taps can be interpreted as double clicks of the *left* button (instead of double clicks of an *`undefined`* button).
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.

None yet

2 participants