Added mobile browser detection to disable FileReader controls on mobile devices
While support for local disk images and other local resources can work on some mobile devices, I don't think the use cases warrant the extra (largely wasted) screen space
This commit is contained in:
parent
c2c387a06d
commit
6eb3911a67
4 changed files with 23 additions and 13 deletions
|
|
@ -949,10 +949,10 @@ Keyboard.prototype.setModel = function(nModel)
|
|||
Keyboard.prototype.setReady = function()
|
||||
{
|
||||
this.iOS = web.isUserAgent("iOS");
|
||||
this.fMobile = (this.iOS || web.isUserAgent("Android"));
|
||||
this.fMobile = web.isMobile();
|
||||
this.messageDebugger("mobile keyboard support: " + (this.fMobile? "true" : "false"));
|
||||
/*
|
||||
* TODO: Determine how to declare this superclass method in order to avoid a type warning
|
||||
* TODO: Determine how to declare this superclass method in order to avoid a type warning in WebStorm
|
||||
*/
|
||||
return Component.prototype.setReady.call(this);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue