mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-04 11:37:12 +08:00
Add disableSelection to stop highlighting
This commit is contained in:
@@ -86,6 +86,8 @@ var Engine = {
|
||||
window.location = 'mobileWarning.html';
|
||||
}
|
||||
|
||||
Engine.disableSelection();
|
||||
|
||||
if(this.options.state != null) {
|
||||
window.State = this.options.state;
|
||||
} else {
|
||||
@@ -566,6 +568,11 @@ var Engine = {
|
||||
}
|
||||
},
|
||||
|
||||
disableSelection: function() {
|
||||
document.onselectstart = function() {return false;} // this is for IE
|
||||
document.onmousedown = function() {return false;} // this is for the rest
|
||||
},
|
||||
|
||||
handleStateUpdates: function(e){
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user