Forum Stats

  • 3,875,870 Users
  • 2,266,977 Discussions
  • 7,912,361 Comments

Discussions

Prevent first click from beeing processed when focusing Canvas

843799
843799 Member Posts: 49,999
I have a behavior that i use for picking and it works so that when
user clicks left mouse button picking is done.
My problem is that when user uses the mouse to set focus on canvas
the processStimulus method is called and picking is executed, i don't
want that. What i want is that the first click ONLY sets focus on canvas
and only then does the user do the picking.

I use WakeupOnAWTEvent(MouseEvent.MOUSE_CLICKED) for triggering
the behavior.

Any ideas??
This discussion has been closed.