javascript Programming Glossary: isdown
How to drag images / objects within Canvas? http://stackoverflow.com/questions/18333936/how-to-drag-images-objects-within-canvas 1 draw1 scaleValue false Code for panning on canvas var isDown false var startCoords var transX transY var last 0 0 canvas.onmousedown.. var last 0 0 canvas.onmousedown function e clearTooltip isDown true startCoords e.offsetX last 0 e.offsetY last 1 canvas.onmouseup.. last 0 e.offsetY last 1 canvas.onmouseup function e isDown false last e.offsetX startCoords 0 set last coordinates e.offsetY..
|