| 12345678910111213141516 |
- function touchmove(event, ownerInstance) {
- var touch = event.touches[0];
- var per = event.instance.getDataset().per - 0;
- var x = touch.clientX * per - 70;
- var y = touch.clientY * per - 84;
- ownerInstance.selectComponent('.kefu').setStyle({
- top: y + 'rpx',
- left: x + 'rpx'
- })
- return false // 不往上冒泡,相当于调用了同时调用了stopPropagation和preventDefault
- }
- module.exports = {
- touchmove: touchmove
- }
|