1.效果
在Chrome移动端浏览模式下,按钮在可见区域内随意拖动并且点击可旋转
2.代码
<template>
<div id="app">
<div align="left">translateX:{
{this.icontranslateX}}</div>
<div align="left">translateY:{
{this.icontranslateY}}</div>
<div align="left">clientWidth:{
{this.clientWidth}}</div>
<div align="left">clientHeight:{
{this.clientHeight}}</div>
<div class="icon-add-50" :style="iconstyle" @click='click' @touchmove='touchmove' @touchstart='touchstart(this,$event)' @touchend='touchend'></div>
</div>
</template>
<script>
export default {
name: &#