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

Implement the experimental pointer lock API #247

Merged
merged 9 commits into from
Jul 4, 2018

Conversation

ryanisaacg
Copy link
Contributor

No description provided.

impl IEvent for PointerLockChangeEvent {}
impl IUiEvent for PointerLockChangeEvent {}
impl IMouseEvent for PointerLockChangeEvent {}
impl IPointerEvent for PointerLockChangeEvent {}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I don't think these events are supposed to derive from these? (The specs are somewhat unclear regarding that.)

Taking a peek a Firefox sources it looks like it should just be an Event? Can you double check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...Huh. That's what I get for not checking my assumptions about web api's I guess. Yeah those derivations shouldn't be there.

@koute
Copy link
Owner

koute commented Jul 3, 2018

Also it'd be nice if you could add a few really basic tests just as we have for other events. (:

@ryanisaacg
Copy link
Contributor Author

Sure, no problem.

@koute
Copy link
Owner

koute commented Jul 3, 2018

You also should export those events in lib.rs or else they'll be useless. (:

@ryanisaacg
Copy link
Contributor Author

Whoops! My bad.

@koute
Copy link
Owner

koute commented Jul 4, 2018

LGTM; thanks!

@koute koute merged commit 85a191f into koute:master Jul 4, 2018
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

Successfully merging this pull request may close these issues.

2 participants