有关拖动(移动)矩形的问题 [英] Question about Dragging(Moving) a rectangle

查看:58
本文介绍了有关拖动(移动)矩形的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人可以帮助我?
我怎样才能实现拖动效果?就像在Flash中调用StartDrag()的函数一样。

通过听取{
mousedown,
mousemove,
mouseup,
} ?
那么,如何改变重新定位的位置,重置边距?

非常感谢....

Are there anyone could help me?
How could I implement the dragging effect? just like the function called StartDrag() in Flash.

by listening the
{
mousedown,
mousemove,
mouseup,
} ?
so,how to change the position of the retangle, reset the margin?

thanks a lot....

推荐答案

比尔,


这篇关于有关拖动(移动)矩形的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆