Fixed mobile version on ios.
This commit is contained in:
parent
6b18a65ab4
commit
ebd0c0bbee
|
@ -130,6 +130,24 @@ Ext.define('DE.controller.toolbar.Edit', {
|
|||
}
|
||||
}, this);
|
||||
|
||||
if (Ext.os.is.iOS) {
|
||||
Ext.each(Ext.ComponentQuery.query('button'), function(button) {
|
||||
button.element.dom.ontouchstart = Ext.emptyFn();
|
||||
button.element.dom.ontouchmove = Ext.emptyFn();
|
||||
button.element.dom.ontouchend = Ext.emptyFn();
|
||||
}, this);
|
||||
|
||||
Ext.each(Ext.ComponentQuery.query('toolbar'), function(toolbar) {
|
||||
var preventFn = function(e){
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
toolbar.element.dom.ontouchstart = preventFn;
|
||||
toolbar.element.dom.ontouchmove = preventFn;
|
||||
toolbar.element.dom.ontouchend = preventFn;
|
||||
}, this);
|
||||
}
|
||||
|
||||
Common.Gateway.on('init', Ext.bind(this.loadConfig, this));
|
||||
},
|
||||
|
||||
|
|
|
@ -87,6 +87,24 @@ Ext.define('DE.controller.toolbar.View', {
|
|||
launch: function() {
|
||||
this.callParent(arguments);
|
||||
|
||||
if (Ext.os.is.iOS) {
|
||||
Ext.each(Ext.ComponentQuery.query('button'), function(button) {
|
||||
button.element.dom.ontouchstart = Ext.emptyFn();
|
||||
button.element.dom.ontouchmove = Ext.emptyFn();
|
||||
button.element.dom.ontouchend = Ext.emptyFn();
|
||||
}, this);
|
||||
|
||||
Ext.each(Ext.ComponentQuery.query('toolbar'), function(toolbar) {
|
||||
var preventFn = function(e){
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
toolbar.element.dom.ontouchstart = preventFn;
|
||||
toolbar.element.dom.ontouchmove = preventFn;
|
||||
toolbar.element.dom.ontouchend = preventFn;
|
||||
}, this);
|
||||
}
|
||||
|
||||
Common.Gateway.on('init', Ext.bind(this.loadConfig, this));
|
||||
Common.Gateway.on('opendocument', Ext.bind(this.loadDocument, this));
|
||||
Common.Gateway.on('applyeditrights',Ext.bind(this.onApplyEditRights, this));
|
||||
|
|
|
@ -79,6 +79,24 @@ Ext.define('PE.controller.toolbar.View', {
|
|||
overlayContainer.element.on('touchend', this.onTouchEndDocument, this);
|
||||
}
|
||||
|
||||
if (Ext.os.is.iOS) {
|
||||
Ext.each(Ext.ComponentQuery.query('button'), function(button) {
|
||||
button.element.dom.ontouchstart = Ext.emptyFn();
|
||||
button.element.dom.ontouchmove = Ext.emptyFn();
|
||||
button.element.dom.ontouchend = Ext.emptyFn();
|
||||
}, this);
|
||||
|
||||
Ext.each(Ext.ComponentQuery.query('toolbar'), function(toolbar) {
|
||||
var preventFn = function(e){
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
toolbar.element.dom.ontouchstart = preventFn;
|
||||
toolbar.element.dom.ontouchmove = preventFn;
|
||||
toolbar.element.dom.ontouchend = preventFn;
|
||||
}, this);
|
||||
}
|
||||
|
||||
Common.Gateway.on('init', Ext.bind(this.loadConfig, this));
|
||||
},
|
||||
|
||||
|
|
|
@ -73,6 +73,24 @@
|
|||
launch: function() {
|
||||
this.callParent(arguments);
|
||||
|
||||
if (Ext.os.is.iOS) {
|
||||
Ext.each(Ext.ComponentQuery.query('button'), function(button) {
|
||||
button.element.dom.ontouchstart = Ext.emptyFn();
|
||||
button.element.dom.ontouchmove = Ext.emptyFn();
|
||||
button.element.dom.ontouchend = Ext.emptyFn();
|
||||
}, this);
|
||||
|
||||
Ext.each(Ext.ComponentQuery.query('toolbar'), function(toolbar) {
|
||||
var preventFn = function(e){
|
||||
e.preventDefault();
|
||||
};
|
||||
|
||||
toolbar.element.dom.ontouchstart = preventFn;
|
||||
toolbar.element.dom.ontouchmove = preventFn;
|
||||
toolbar.element.dom.ontouchend = preventFn;
|
||||
}, this);
|
||||
}
|
||||
|
||||
Common.Gateway.on('init', Ext.bind(this.loadConfig, this));
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue