weimingtom / nekonme

Automatically exported from code.google.com/p/nekonme
0 stars 0 forks source link

refactor event propogation/preventdefault/stop/cancel handling #110

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
currently the 'cancelable' property is applied as what should really be 
preventDefault().

need to:

-rename 'cancel' flags to 'stop' and use these for stopPropogation
-add preventDefault() method and check 'canceled' here instead
-verify behaviors in cases where cancelable should be true - android back 
button, etc

Original issue reported on code.google.com by milkmang...@gmail.com on 12 Jul 2011 at 6:53

GoogleCodeExporter commented 8 years ago
Issue 106 has been merged into this issue.

Original comment by milkmang...@gmail.com on 12 Jul 2011 at 6:58

GoogleCodeExporter commented 8 years ago
+1 on this one... I think, however, that the name "refactor..." somewhat masks 
the seriousness of the issue. For example, since MouseEvent has 
cancellable=false, stop*Propagation is a no-op, mouse events are impossible to 
stop, making stuff like UI coding cumbersome.

Original comment by anders.s...@gmail.com on 4 Feb 2012 at 11:26