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

Added PointerEvents to splitpanel #251

Merged

Conversation

martaszmit
Copy link

No description provided.

@welcome
Copy link

welcome bot commented Oct 22, 2021

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please make sure you followed the pull request template, as this will help us review your contribution more quickly.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also a intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@blink1073 blink1073 added the enhancement New feature or request label Oct 22, 2021
Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

Thank you!

@blink1073
Copy link
Contributor

The code looks good to me, and it worked as expected on my iPad in the dockpanel example for this PR. Are you still seeing issues on your end @martaszmit? If so, what hardware are you using to test?

@martaszmit
Copy link
Author

martaszmit commented Oct 25, 2021

Yes, I'm testing it on my laptop dell precision 7550 with touch screen in the dockpanel example.
Right now it works as in this movie ( not sure if you are now able to see it):

screen-capture.mov

If it works fine for you when would be possible to merge it deliver new version of Lumino? Maybe after update in my project, it will work as expected.

@blink1073
Copy link
Contributor

blink1073 commented Oct 25, 2021

It could be that it is inconsistently generating the pointer events on your hardware. A way to check that would be to add a console log in handleEvent for the event type and watch what events are fired as you interact with the split handles.

@martaszmit
Copy link
Author

Ok, I will check it today.
Is it ready to merge? If so, when can it be merged?

@blink1073
Copy link
Contributor

Once we think this is ready, I can merge and release on the same day. I'm happy to merge as-is since it is already an improvement, and then you can follow up based on more testing on your hardware.

@martaszmit
Copy link
Author

I think would be great if it will be merged now, and I will test it, and go back to you if I will still have an issue with it, ok?

@blink1073
Copy link
Contributor

Sounds good, releasing now.

@blink1073 blink1073 merged commit 1ae240e into jupyterlab:master Oct 25, 2021
@welcome
Copy link

welcome bot commented Oct 25, 2021

Congrats on your first merged pull request in this project! 🎉
congrats
Thank you for contributing, we are very proud of you! ❤️

@blink1073
Copy link
Contributor

@martaszmit
Copy link
Author

Thank you!
I'm coming back with some analysis. I already tested dockpanel example, and my app.
I can confirm that dockpanel example (https://lumino.readthedocs.io/en/latest/examples/dockpanel/index.html) works fine on my iPad, but it still doesn't work on my Dell laptop and doesn't work using browser developer tools ( on my and 4 more different laptops too).
In my app resizing doesn't work on my Dell Laptop and on my iPad either (probably some issue in my code, maybe some additional requirements should be full-fielded? Anyhow drag and drop widget works perfect).

@blink1073
Copy link
Contributor

It could be the combination of browser/OS on the Dell that is causing inconsistent pointerEvent emissions. As for your app, are you using the SplitPanel directly (as opposed to a subclass that adds other logic)? It could also be that something else in your app is catching events in the "capture" phase and they aren't getting to the SplitPanel handle nodes.

@martaszmit
Copy link
Author

martaszmit commented Oct 28, 2021

Thank you for hints, I already found an oversight in my app :) Now works fine on iPad, but still doesn't work on my laptop. I tested my app and dockpanel example on few laptops and browsers using developer tools (because only my laptop has a touch screen). Could you also test dockpanel example using developer tools on your computer, please? I wonder if it will work fine for you.

@blink1073
Copy link
Contributor

Interesting! I saw the same thing when I opened Developer Tools for my iPad. The drag-n-drop mostly works, but the events are sporadic (it selects the input box within the panel), and the split panel handles do not work. When I closed the Developer Tools, it returned to normal behavior. Mind opening a new issue to track this?

@martaszmit
Copy link
Author

I opened a bug ticket for this issue (#254).
Maybe some could take a look on it, I'm not sure if I will be able to do so.

@blink1073
Copy link
Contributor

Thanks again @martaszmit!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants