I have all new code to detect mouse and touch. This time, I've tested on iOS, and Chrome, FireFox, IE, and Safari on Windows 7 without touch and on Windows 8.1 with touch (Surface Tablet). The code has gotten bigger, and I am nearing the edge of sanity.
This is pretty simple. The hasMouse and hasTouch above the Scalebar Widget will show undefined until a mouse or touch is detected. The order shouldn't matter. I appreciate all who will help with this test.