jupyterlab / lumino

Lumino is a library for building interactive web applications
https://lumino.readthedocs.io/
Other
604 stars 128 forks source link

Touch Events -> Resize widgets #247

Open martaszmit opened 2 years ago

martaszmit commented 2 years ago

Hello! First of all I would like to thank you guys for last changes in Lumino and for possibility to rearrange widgets on touch screens (@bign8 👏 ).

Regarding this changes, would be great to add possibility to resize widgets on touch screens as well.

What do you think about this proposal?

Cheers!

welcome[bot] commented 2 years ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada:

blink1073 commented 2 years ago

Hi @martaszmit, yes, that makes sense. I believe the relevant changes would be in SplitPanel.handleEvent.

martaszmit commented 2 years ago

Thank you for hint :) I tried to take a look on it, but when I cloned a repository, installed dependencies I tried to run yarn build:src and it fails on @lumino/messaging build script. Did I something wrong? image

blink1073 commented 2 years ago

What is the output of node --version?

martaszmit commented 2 years ago

v14.17.1

blink1073 commented 2 years ago

Hmm, I just tried in a fresh environment with node v14.17.4 and yarn 1.22.17 on my macOS 11.6 and it built fine. What version of yarn and which OS are you using?

martaszmit commented 2 years ago

yarn 1.22.15 on windows 10 enterprise

blink1073 commented 2 years ago

I also tried with Wndows 10 Pro and it built fine, we're also building against Windows in CI. I've not seen an error like that before, I'm not sure what else to suggest other than to try creating a new clean environment or use a conda environment to get node.

martaszmit commented 2 years ago

I confirm, works fine now, I started again in a fresh environment 👍

blink1073 commented 2 years ago

Ha, node is definitely like that sometimes...

martaszmit commented 2 years ago

Hi, I spotted that, without any changes it works sometimes, quite randomly as you can see in the video below. I tried to add changes similar to these: https://github.com/jupyterlab/lumino/pull/123 in SplitPanel , but nothing has changed.

https://user-images.githubusercontent.com/19773837/138288421-0355107d-a8a1-459b-81c8-348156b81cae.mov

blink1073 commented 2 years ago

I'm not able to view the video. Can you please push your work in progress to a pull request? We can look at the code together, and the changes will be testable from a tablet using the readthedocs build for the PR.

martaszmit commented 2 years ago

Of course, thank you :) PR is ready: https://github.com/jupyterlab/lumino/pull/251