touch 缩小放大后拖拽图片问题
1.touch.js插件只是用来捕获touch事件,捕获到之后要做什么操作由我们自己来决定。这样就可以进行放大缩小后图片的拖拽,进而可以看到放大后的全图。以下是代码: 参考案例:UI2\system\components\justep\touch\demo\touchjs Model.prototype.pinch = function(event) { var me = this; var id = this.getIDByXID('pinch'); var posData = me.comp("posData"); var target = document.getElementById(id); touch.on('#' + id, 'touchstart', function(ev) { ev.target = target; }); var initialScale [...]