Find a foreigner to rewrite the sliding textarea:
Ext.define (' LeslieTest.view.TextArea ', {extend: ' Ext.field.TextArea ', xtype: ' Scrolltextarea ', initialize: function () {this.callparent (); This.element.dom.addEventListener (Ext.feature.has.Touch? ' Touchstart ': ' MouseDown ', This.handletouchlistener = Ext.bind ( This.handletouch, this), false); This.element.dom.addEventListener (Ext.feature.has.Touch? ' Touchmove ': ' MouseMove ', This.handlemovelistener = Ext.bind ( This.handlemove, this), false); This.movelistenersattached = true; }, Destroy:function () {if (this.movelistenersattached) {this.movelistenersattached = false; This.element.dom.removeEventListener (Ext.feature.has.Touch? ' Touchstart ': ' MouseDown ', This.handletouchlistener, FALSE); This.element.dom.removeEventListener (Ext.feature.has.Touch? ' Touchmove ': ' MouseMove ', This.handlemovelistener, false); This.handletouchlistener = This.handlemovelistener = null; } this.callparent (); }, Handletouch:function (e) {this.lasty = E.pagey; }, Handlemove:function (e) {var textArea = E.target; var top = textarea.scrolltop <= 0; var bottom = textarea.scrolltop + textarea.clientheight >= textarea.scrollheight; var up = e.pagey > this.lasty; var down = E.pagey < this.lasty; This.lasty = E.pagey; if (top && up) | | (bottom && down)) E.preventdefault (); if (! ( Top && bottom)) e.stoppropagation (); }});
The scroll bar is not displayed on the textarea phone and cannot be scrolled