I'd like to make it so onmousedown is repeatedly called if the left mouse button mouse is held down. Right now it only fires once when it is clicked.
wHandle.onmousedown = function (event) {
console.log('mouse button is being held down!'); // does not work
};
This is how I'd like it to function (this works with space, it calls the function over and over as long as space is being held down):
wHandle.onkeydown = function (event) {
switch (event.keyCode) {
case 32: // space
console.log('space is being held down!'); // works!
break;
};