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 mode not activating in Chrome #43

Open
mdkrieg opened this issue Sep 17, 2022 · 1 comment
Open

Touch mode not activating in Chrome #43

mdkrieg opened this issue Sep 17, 2022 · 1 comment

Comments

@mdkrieg
Copy link

mdkrieg commented Sep 17, 2022

Hello, and thank you for the great work!

First off, this is on Google Chrome, on a Windows 10 touchscreen laptop (Dell Inspiron 3505),
Google Chrome Version 105.0.5195.127 (Official Build) (64-bit)

Out of the box, everything worked perfect when manipulating with the mouse, but it didn't respond to touch.

Took a quick look in the code and putting an (... || true) in the below pictured if statement (ln 119) got me the functionality I was after but now the mouse is unresponsive. I'm not sure if there is a reason to make these mutually exclusive but for my purpose I want to be able to use both. So, I commented out the if structure and it works as I was hoping for!

image

I don't understand the ("ontouchstart" in document.documentElement) method, but it never returns true for me, while using "onclick" does... odd, but I can confirm that the touch listeners are working for me regardless of this test method.

Personally I would prefer the listeners to be able to be activated / deactivated with a parameter input, then it either works or it doesn't, but that's just me.

Best Regards!
-Matt

@ernijaime
Copy link

Happens to me too on Windows Surface. I guess because it uses both touch and mouse events...

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