Description
For the last few years we've started using pointer events for dockpanel, splitpanel, dragdrop, etc. However, we are not paying attention to the pointer id. I think that means there are a lot of places where confusing things happen if we have multiple pointers. For example, it seems that you can have one pointer trigger a pointerdown event, then a different pointer trigger a pointermove event, and the two pointers will get confused.
Reproduce
I haven't tried reproducing an issue yet, just looked through the code, but I imagine on a touchscreen you can try pressing a dockpanel splitter, then with another pointer moving past the splitter. Both pointers will cause pointermove events, so the splitter will keep jumping between them.
Expected behavior
The pointer that initiated a drag-type event is the only one that respects the drag.
Context
- Operating System and version:
- Browser and version:
- JupyterLab version:
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
Description
For the last few years we've started using pointer events for dockpanel, splitpanel, dragdrop, etc. However, we are not paying attention to the pointer id. I think that means there are a lot of places where confusing things happen if we have multiple pointers. For example, it seems that you can have one pointer trigger a pointerdown event, then a different pointer trigger a pointermove event, and the two pointers will get confused.
Reproduce
I haven't tried reproducing an issue yet, just looked through the code, but I imagine on a touchscreen you can try pressing a dockpanel splitter, then with another pointer moving past the splitter. Both pointers will cause pointermove events, so the splitter will keep jumping between them.
Expected behavior
The pointer that initiated a drag-type event is the only one that respects the drag.
Context
Troubleshoot Output
Command Line Output
Browser Output