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

Hololens click events not working for some people #24698

Open
Manishearth opened this issue Nov 8, 2019 · 12 comments
Open

Hololens click events not working for some people #24698

Manishearth opened this issue Nov 8, 2019 · 12 comments
Labels

Comments

@Manishearth
Copy link
Member

@Manishearth Manishearth commented Nov 8, 2019

I first thought this was a platform issue, but some folks (including @pcwalton) are having trouble clicking links (etc) on Servo's 2D hololens port.

It might be related to #24547 . I haven't really investigated this since I can't easily replicate it myself, but I think these folks poke instead of tap, and that may trigger mouse events instead of touch events or something.

I think the "tap shadow ripple" which happens when you click on servo is still visible for these folks. (Is that panel.PointerPressed())

The DOM synthesizes events at some point and perhaps our events are in conflict with those.

I might let Patrick use the device with some logging at some point.

cc @paulrouget

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Nov 11, 2019

Might be #24596 - I'll be looking at this this week.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Nov 14, 2019

I'm not sure how to reproduce.

The UWP port follows these guidelines: https://docs.microsoft.com/en-us/windows/uwp/design/input/handle-pointer-input

Mouse down and up are triggered on released and pressed. Click is triggered on tap.

What is a "poke"? Is it https://docs.microsoft.com/en-us/uwp/api/windows.ui.xaml.uielement.holding ?

I think the "tap shadow ripple" which happens when you click on servo is still visible for these folk

Can you explain a bit more?

@Manishearth
Copy link
Member Author

@Manishearth Manishearth commented Nov 14, 2019

By poke I mean that their fingers go through the window instead of briefly making contact.

When you click things in servo you hear a sound and a little shadow appears around the clock, that's the shadow ripple I'm talking about.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Nov 15, 2019

Would be interesting to see if they miss-click in IE as well.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Nov 15, 2019

Just poking in IE doesn't not generate, and poking a link doesn't navigate.

So I guess our behavior is consistent with IE at least.

@Yonet
Copy link

@Yonet Yonet commented Jan 11, 2020

Click events works on Edge, but not on Servo.
Edge: https://youtu.be/2uv_m_VJMfU
Servo: https://youtu.be/6oYLFx3YwMQ

@Manishearth
Copy link
Member Author

@Manishearth Manishearth commented Jan 11, 2020

Hmm, this should have been fixed in #25076 cc @paulrouget

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Feb 5, 2020

Back from holidays. I’ll look soon.

@pshaughn
Copy link
Member

@pshaughn pshaughn commented Feb 5, 2020

This is probably unrelated but I want to point it out just in case it is a part of the problem: clicks as currently implemented in Servo aren't doing a good job of bubbling upward, so for instance if you managed to target the text node inside a button with a click you wouldn't necessarily register a click on the button. #25488 is my attempt to fix that sort of thing.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Feb 10, 2020

Click events works on Edge, but not on Servo.
Edge: https://youtu.be/2uv_m_VJMfU
Servo: https://youtu.be/6oYLFx3YwMQ

Wow, even the mouse move events are not sent.

@paulrouget
Copy link
Contributor

@paulrouget paulrouget commented Feb 10, 2020

I’m not sure @Yonet issue is directly related to this click issue.

@Yonet do you mind filing another issue for your specific problem (which looks more serious that this specific click issue)? And in that new issue, can you tell me if you can click on the “reload” button in Servo’s toolbar?

@Yonet
Copy link

@Yonet Yonet commented Apr 24, 2020

@paulrouget sorry for the late reply. Click works great at the moment. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.