-
Notifications
You must be signed in to change notification settings - Fork 34
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
Multi-pen support and persistent pointerId #353
Comments
Personally, I think it would make sense to have this as part of the PE spec, rather than a separate one. My very naive take would be that this is already possible/allowed by that "MAY" sentence you mention, and that it can be expanded to mention this particular scenario as a rationale for the "MAY". I do wonder if there's privacy concerns though, and if this may need some opt-in on the part of the users (also, how long does it persist, what's a "session" in this context, etc). But generally, I'd personally be in favour of this. |
Hey @patrickhlauke I think there is already some context around the lifetime of the Do you think there is a backwards compatibility risk by doing it this way? Is there a case where someone would take a dependency on a "new-ID-per-event" system for creating unique SVG strokes? Is this use case exempt because of the verbiage:
|
Alternative proposal to add new
@patrickhlauke Can this thread be brought up at the next PointerEvent WG meeting to start a discussion about the best way to achieve this? |
@bmathwig tagged this as a future idea. currently we're in the process of trying to stabilise Pointer Events Level 3 for a possible publication this year. |
Note that there's a proposal to add this to Chromium. It doesn't really matter to Chromium process if that's done by (as planned) an independent WICG spec, some future-branch PE L4 spec, or a separate PE extensions spec as we've done in the past for new additions while we're stabilizing a version of the spec. @patrickhlauke / @mustaqahmed any preference? |
@RByers hey stranger. I'd love to see this as part of L4 (or living standard, or however we want to set this up for future), so whichever approach would lend itself the best for that is ok with me. Maybe a WICG extension? |
Hey man, good to have an excuse to post on PEWG again 😄. Sounds good, sounds like you are both thinking a tiny little WICG extension is simplest, so that's fine - we can move it into PE once L3 ships. FWIW I would love to see y'all move to a living standard model. |
Great to see the revived interest here! I agree with @RByers and @patrickhlauke re the WICG path until we are done with L3. Let me bring back an old question from @bmathwig above, which I didn't get a chance to comment before:
We don't know any use-case like this, and therefore re-purposing |
I don't think re-purposing pointerId works because pointerId is expected to remain fixed for a given pointer but the hardware limitations suggest that for many devices the hardware id is not known until after it starts moving on the surface, and as such the device id would be -1 on the event stream until the point at which the hardware id is known. I think we should discuss this proposal again at the PEWG. It has been implemented with a draft spec PR, and a proposal to ship in chromium. |
Yeah that property of the hardware ID not necessarily being known at |
This was discussed yesterday (notes) where the consensus was that we would like to see this identifier added to a common structure where other device specific customizations could go. The rationale is to avoid having a bunch of new optional members of pointer events at the base level. |
Another question that came up is when (i.e. for what devices / OS's) this would apply. My understanding was that we should have a |
Following up on the conversation from the deviceId I2S. I think we should only have a deviceId when we can uniquely identify a particular pointer.
I think excluding touch from deviceId seems reasonable, at least to me, since I would not expect my individual fingers to be identified, but I can understand the rationale behind this question. I think my vocabulary isn't big enough or an alternative name :P ... it would need to emphasize that the pointer event has the same source device though. |
One more question, is |
I don't mind |
x-ref: #495 |
After some new concerns raised in the spec pr, it seems like this is taking the original direction of an id on the main PointerEvent interface. The id will be called Wondering if the PEWG is in agreement with the naming and overall shape of the API. @flackr @patrickhlauke |
Closed via #495 |
After digging around in issues for a while, I don't believe this has been raised before, but please feel free to dupe if so.
Lately, we at Microsoft have been thinking a bit about multi-pen scenarios for devices like Surface Hub. In cases like these, it is sometimes desirable to assign a pen a unique
pointerId
per top-level browsing context that remains static for the duration of the session regardless of whether the pen moves beyond the range of the digitizer. This would enable various scenarios:Given various language in the PointerEvents spec such as
and
It may be that to maintain backwards-compatibility, such an idea would be best implemented as part of a new specification specifically designed for this use case, but I thought I'd float the idea here first to get folks' thoughts.
The text was updated successfully, but these errors were encountered: