Add disableSelection to stop highlighting

This commit is contained in:
Blake Grotewold
2014-04-01 19:25:59 -05:00
parent 8ad2f82fd0
commit a0aa2eaab9
+7
View File
@@ -85,6 +85,8 @@ var Engine = {
if(Engine.isMobile()) { if(Engine.isMobile()) {
window.location = 'mobileWarning.html'; window.location = 'mobileWarning.html';
} }
Engine.disableSelection();
if(this.options.state != null) { if(this.options.state != null) {
window.State = this.options.state; window.State = this.options.state;
@@ -565,6 +567,11 @@ var Engine = {
Engine.activeModule.swipeDown(e); Engine.activeModule.swipeDown(e);
} }
}, },
disableSelection: function() {
document.onselectstart = function() {return false;} // this is for IE
document.onmousedown = function() {return false;} // this is for the rest
},
handleStateUpdates: function(e){ handleStateUpdates: function(e){