Canvas event handling: Difference between revisions

Jump to navigation Jump to search
m
http://forum.flightgear.org/viewtopic.php?f=71&t=23659&p=215447#p215441
m (http://forum.flightgear.org/viewtopic.php?f=71&t=23659&p=215447#p215441)
Line 2: Line 2:
{{Template:Canvas Navigation}}
{{Template:Canvas Navigation}}


'''Note: This feature is only available in FlightGear versions >= 2.11 !'''
{{Note| This feature is only available in FlightGear versions >{{=}} 2.11 !
To really understand Canvas event handling, you should read [[Using listeners and signals with Nasal] first and how [[Using_Nasal_functions#Function_closures|closures work]].}}


The Canvas event handling system closely follows the W3C [http://www.w3.org/TR/DOM-Level-3-Events/ DOM Event Model]. If you have already used events in JavaScript and HTML most concepts of the Canvas event system should be already familiar to you. The most notable difference is the missing capture phase, but it is usually not used anyhow.
The Canvas event handling system closely follows the W3C [http://www.w3.org/TR/DOM-Level-3-Events/ DOM Event Model]. If you have already used events in JavaScript and HTML most concepts of the Canvas event system should be already familiar to you. The most notable difference is the missing capture phase, but it is usually not used anyhow.

Navigation menu