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

Touch event support #77

Open
jjrv opened this issue May 25, 2020 · 2 comments
Open

Touch event support #77

jjrv opened this issue May 25, 2020 · 2 comments

Comments

@jjrv
Copy link
Contributor

jjrv commented May 25, 2020

The old phosphorjs/phosphor#154 issue remains unresolved. Touchscreen laptops and larger tablets, both with touch events, could support a desktop-style web app. However Lumino DockPanel currently only responds to mouse events.

Another UX issue is that even with touch event support, the spacing between panels is a very small area to hit for resizing them. A larger handle, gesture and / or resizing mode is needed to manage them comfortably with a finger as the only pointing device.

I propose two options:

  • A resizing mode that app developers can decide how to trigger and render, but would add a floating resize widget in the middle of every panel subdivision, large enough to drag.
  • A gesture: dragging with two fingers, each in a different panel, could move the divider between the panels.
@blink1073
Copy link
Contributor

blink1073 commented May 27, 2020

It looks like pointer-events are fully supported by the browsers we are targeting (recent Firefox, Chrome, Edge, and Safari) and many of the touch-action events are supported.

https://developer.mozilla.org/en-US/docs/Web/CSS/pointer-events
https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action

@blink1073
Copy link
Contributor

cc @tgeorgeux for UX input on the gesture and resizing

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