This commit is contained in:
Samuel Mannehed 2016-09-06 17:11:50 +00:00 committed by GitHub
commit a5900c36ba
1 changed files with 4 additions and 1 deletions

View File

@ -53,7 +53,10 @@ var UI;
// Render default UI and initialize settings menu // Render default UI and initialize settings menu
start: function(callback) { start: function(callback) {
UI.isTouchDevice = 'ontouchstart' in document.documentElement; UI.isTouchDevice = (('ontouchstart' in window)
// required for MS Surface
|| (navigator.maxTouchPoints > 0)
|| (navigator.msMaxTouchPoints > 0));
// Stylesheet selection dropdown // Stylesheet selection dropdown
var sheet = WebUtil.selectStylesheet(); var sheet = WebUtil.selectStylesheet();