Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
Hi,

I am developing an javascript editor using Kineticjs where I can add images and move them to up, down, left and right directions. I have managed to move image to any of these directions by using move method of the group like this

CurrentGroup.move(0,-1)


Now I want that when user click on any up, down , left and right key. The image should keep moving on the mousedown as long as the user keep the mouse clicked. I am stuck here because my current method is not working in this scenario.

Thank in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900