Is there a button event versus a mouse event in html5 canvas
Hi.
Using this code, I create an interactive button in Canvas:
new cjs.ButtonHelper(thisring, 0, 1, 2, false, new lib.ring(), 3);
The object instance "thisring" is the button. When I move the mouse over the button, the pointer changes to a hand finger, like it should.
The object instance "thisring" however itself moves. When the button goes under the mouse pointer, it does not change to a hand finger, although the button is at this point clickable. The mouse has to move to change the pointer's appearance.
In Flash the mouse event functionality worked even on moving buttons, ie.: button moves under pointer -> pointer changes.
In Canvas this does not seem to be the case. Is there some way of associating the button with the event instead of the mouse?
Note: It could be a browser issue, because in conventional HTML buttons don't move. Browsers have yet to adapt to Canvas, where buttons can move.
If there is a fix, it probably has to be a workaround. My JavaScript is a bit rusty, but I don't think I've heard of a button event.
