#1244 MouseDown event (dom.Event) - which button pressed ?

tcolar Fri 1 Oct 2010

There does not seem to be a way to determine which mouse button was pressed(Left/Right/Middle).

Am I missing something ?

Thanks.

brian Fri 1 Oct 2010

See fwt::Event.button

A great way to test stuff out is run examples/fwt/demo.fan and use the Events tab to try out key/mouse events

tcolar Fri 1 Oct 2010

I've seen that and it works there, but it's fwt.Event, not dom.Event.

I'm talking about Event in dom (BTW, I which there weren't two classes called Event in different pods, commonly used together)

The Event obj in dom as much less infos, and I don't seem to see anyway to find which button was pressed there ... as far as I know dom / canvas etc does have that info available.

So any reason why I can't get that ? is it just not implemented yet ?

Thanks.

andy Fri 1 Oct 2010

@tcolar - pushed a fix: changset

tcolar Fri 1 Oct 2010

But but don't I have to submit a JCP request first and wait 3 years ??

Thanks, another nice thing about Fantom :)

Login or Signup to reply.