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

Should a web page allow to select specific types of event to be forwarded and not others #47

Open
youennf opened this issue Oct 25, 2024 · 4 comments

Comments

@youennf
Copy link

youennf commented Oct 25, 2024

Capture control may allow to forward user gestures.
And we might extend the list of user gestures that can be forwarded.

In that case, what happens to web pages when we allow new user gestures?

@youennf
Copy link
Author

youennf commented Oct 25, 2024

The first thing is I would like to avoid a new API for each new user gesture.

By allowing a page to express its interest to forward user gestures as a whole, this makes it forward compatible if UA implements forwarding of a new user gesture.

Maybe that is the only thing we need.
Or maybe web application might want to disallow some specific user gestures that would not be useful.

@youennf youennf changed the title [Capture control]: should a web page allow to select specific types of event to be forwarded and not others [Capture control] Should a web page allow to select specific types of event to be forwarded and not others Oct 25, 2024
@eladalon1983
Copy link
Member

eladalon1983 commented Oct 25, 2024

I believe it best to be explicit.

This is a trivial addition:

controller.forwardWheel();
controller.forwardPinch();

This too is trivial:

controller.forwardGestures({wheel: true, pinch: true});

As would:

controller.forwardGestures({all: true});

Allowing the application the flexibility of opting in/out of specific gestures might be very significant for those apps that need this, while costing those apps that don't need it nothing (especially with the all version I propose here).

@eladalon1983 eladalon1983 transferred this issue from w3c/mediacapture-screen-share-extensions Nov 13, 2024
@eladalon1983 eladalon1983 changed the title [Capture control] Should a web page allow to select specific types of event to be forwarded and not others Should a web page allow to select specific types of event to be forwarded and not others Nov 13, 2024
@eladalon1983
Copy link
Member

Issue transferred; heads up to those discussion participants who might otherwise be looking for it elsewhere: @jan-ivar, @youennf

@dontcallmedom-bot
Copy link

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

3 participants