-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Modernizr.touch changes, as per #548 #800
Conversation
This looks good to me. I think the modulizr folder can pretty much go away in this new world, if I'm remembering correctly. Ashamed that I didn't have auto-whitespace removal when I wrote that file. |
Modernizr.touch changes, as per #548
I think |
Touch screen via a KVM which hasn't been switched over? And for the sake of future-proofing, who knows what people will come up with in the future... we thought they'd always have a mouse. |
(I'm aware I'm probably being overly cautious...) |
fair enough it's not overly complicated test and like you said it's more robust than just checking |
Of course keyboard-only is perfectly valid too! |
Modernizr.touch changes, as per Modernizr#548
Modernizr.touch changes, as per Modernizr#548
Modernizr.touch changes, as per Modernizr#548
Modernizr.touch changes, as per #548:
Modernizr.touch
->Modernizr.touchevent
(buttouch
still aliased)Modernizr.pointerevents
(CSS pointer-events) ->Modernizr.csspointerevents
Modernizr.pointerevents
API-breaking change.
I've done the PointerEvents test by checking for presence of the
pointerdown
event. Microsoft's recommendation is to usewindow.navigator.pointerEnabled
(prefixed), but it isn't clear ifpointerEnabled
is intended to change dynamically as devices are connected/disconnected... anyone know? We agreed on #548 that Modernizr should focus on static capability to support pointer events, not dynamic state of whether or not an appropriate device is connected.Review please!