I have some code that works each time onmouseclick and continuously onmousemove when I set them accordingly.
(我有一些代码每次在onmouseclick上都有效,并在相应地进行设置时不断onmousemove起作用。)
I am looking for a way to combine the two (ie like a click and drag) which I thought would be a simple task but cannot find any simple explanation. (我正在寻找一种将两者结合起来的方法(例如单击和拖动),我认为这是一个简单的任务,但找不到任何简单的解释。)
The closest I get is drag-and-drop tutorials. (我得到的最接近的是拖放教程。)
Do I have to call the onmousemove event while the onmouseclick event is triggered?
(在触发onmouseclick事件时,我是否必须调用onmousemove事件?)
Or is there something really simple I am completely overlooking? (还是我完全忽略了一些真的很简单的事情?)
ask by myol translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…