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

I'm currently using segments.dblclick but it doesn't seem to work at all, I'm on version v3.4.2 #553

Open
WL1994 opened this issue Nov 21, 2024 · 5 comments

Comments

@WL1994
Copy link

WL1994 commented Nov 21, 2024

I'm currently using segments.dblclick but it doesn't seem to work at all, I'm on version v3.4.2

@chrisn
Copy link
Member

chrisn commented Nov 22, 2024

Thanks for reporting this. Using the demo pages, I see segments.dblclick events in Chrome but not in Firefox. Which browser are you using? And which version of the Konva dependency do you have?

@WL1994
Copy link
Author

WL1994 commented Nov 22, 2024

@chrisn Thank you for your reply. I am currently using Google Chrome on macOS, and the Konva version is 9.3.16.

@WL1994
Copy link
Author

WL1994 commented Nov 29, 2024

@chrisn I seem to have found the problem. The reason why segments.dblclick is not working is that I set playheadWidth: 2. I feel like when I double-click, I'm clicking on the line rather than the segment. If that’s the case, please help me verify.

@chrisn
Copy link
Member

chrisn commented Nov 29, 2024

You're right, that's what I found too, but I'm not sure why it works in some browsers and not others. I also noticed that sometimes double-clicks don't cause a dblclick event and you have to double-click twice to generate an event.

chrisn added a commit that referenced this issue Nov 30, 2024
@chrisn
Copy link
Member

chrisn commented Nov 30, 2024

Please try 4.0.0-beta.0.

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