mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-29 00:31:53 +08:00
Add disableSelection to stop highlighting
This commit is contained in:
@@ -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){
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user