[Pkg-javascript-commits] [dojo] 60/88: make has("touch") return true for surface, fixes #16569 on 1.8 branch !strict
David Prévot
taffit at moszumanska.debian.org
Thu Aug 21 17:39:39 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 1.8.5
in repository dojo.
commit 596f57b4c6f1801f45700dd351fef16e63338c23
Author: Bill Keese <bill at dojotoolkit.org>
Date: Thu Jan 17 12:08:12 2013 +0000
make has("touch") return true for surface, fixes #16569 on 1.8 branch !strict
git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@30382 560b804f-0ae3-0310-86f3-f6aa0a117693
---
has.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/has.js b/has.js
index bd0605c..dd765d3 100644
--- a/has.js
+++ b/has.js
@@ -98,7 +98,7 @@ define(["require", "module"], function(require, module){
if(has("host-browser")){
// Common application level tests
has.add("dom-addeventlistener", !!document.addEventListener);
- has.add("touch", "ontouchstart" in document);
+ has.add("touch", "ontouchstart" in document || window.navigator.msMaxTouchPoints > 0);
// I don't know if any of these tests are really correct, just a rough guess
has.add("device-width", screen.availWidth || innerWidth);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list