0
0
mirror of https://github.com/Doodle3D/doodle3d-client.git synced 2024-11-22 09:17:56 +01:00

temp rollback to fix the iPad freaking out onOrientationChange event

This commit is contained in:
Adriaan Wormgoor 2013-08-16 23:10:05 +02:00
parent 93a4bc2fd3
commit 62689b007c
2 changed files with 4 additions and 4 deletions

View File

@ -26,9 +26,9 @@ function doClientAndOrientationStuff() {
var ww = 0; //get proper width var ww = 0; //get proper width
if (window.screen.availWidth) { if (window.screen.availWidth) {
ww = window.screen.availWidth; ww = window.screen.availWidth;
if( /iPhone|iPad|iPod/i.test(navigator.userAgent) ) { // if( /iPhone|iPad|iPod/i.test(navigator.userAgent) ) {
ww = window.innerWidth; // ww = window.innerWidth;
} // }
} else if($(window).width()) { } else if($(window).width()) {
ww = $(window).width(); ww = $(window).width();
} else { } else {

View File

@ -1,7 +1,7 @@
var debugMode = false; // debug mode var debugMode = false; // debug mode
var sendPrintCommands = true; // if Doodle3d should send print commands to the 3d printer var sendPrintCommands = true; // if Doodle3d should send print commands to the 3d printer
var communicateWithWifibox = true; // if Doodle3d should try interfacing with the wifibox (in case one is not connected) var communicateWithWifibox = true; // if Doodle3d should try interfacing with the wifibox (in case one is not connected)
var wifiboxIsRemote = true; // if Doodle3d should try interfacing with the wifibox (in case one is not connected) var wifiboxIsRemote = true; // if Doodle3d should try interfacing with the wifibox (in case one is not connected)
var printer = new Printer(); var printer = new Printer();