摘要: sencha touch 中添加手势识别非常简单,就是监听 dom 元素的 move 事件:1. 为你的 view 注册 swipe 事件// 为当前 view 注册手势滑动事件Ext.get('myTouchView').on('swipe', 'onViewSwipe', this);2. 判断滑动方向// 手势滑动监听事件onViewSwipe : function(e, target, options, eOpts) { if (e.direction === 'left' && e.distance &g 阅读全文
posted @ 2013-12-16 22:05 LeslieFang 阅读(3215) 评论(0) 推荐(0)
摘要: 最近在项目中发现 sencha touch 中的 textarea 在手机上不显示滚动条,也不能滚动。在浏览器中之所以能显示滚动条滚动,那是浏览器为 textarea 添加的滚动条。 但在手机中是不会显示滚动条的。 可能在以后的版本中会有所改进吧。于是只能另想办法了,找了一个老外重写的可滑动的 textarea (无滚动条)。转:Ext.define('LeslieTest.view.TextArea',{ extend : 'Ext.field.TextArea', xtype : 'scrollTextArea', initialize : 阅读全文
posted @ 2013-12-16 21:41 LeslieFang 阅读(3342) 评论(1) 推荐(0)