Skip to content

Multi-pointer support is missing #785

Description

@jasongrout

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions