0 Replies Latest reply on Aug 10, 2009 5:30 PM by Jason Szeto

    [svn:fx-trunk] 9215: Event Propagation bug fix

    Jason Szeto Level 3

      Revision: 9215

      Author:   jszeto@adobe.com

      Date:     2009-08-10 17:30:21 -0700 (Mon, 10 Aug 2009)

       

      Log Message:

      ***********

      Event Propagation bug fix

       

      http://bugs.adobe.com/jira/browse/SDK-21044 - Spark Components should use event.preventDefault instead of event.stopPropagation

       

      Since keyboard are now cancellable, the Spark components should use event.preventDefault() / event.isDefaultPrevented()  instead of event.stopPropagation. I updated ButtonBar, RadioButton, and DropDownList to use preventDefault(). Also cleaned up Slider and Spinner to always assume the event is cancellable.

       

      QE notes: Add tests with these components inside of scrollable containers

      Doc notes: None

      Bugs: SDK-21044

      Reviewer: Hans

      Tests run: Slider, Spinner, RadioButton, ButtonBar, DropDownList

      Is noteworthy for integration: No

       

      Ticket Links:

      ************

          http://bugs.adobe.com/jira/browse/SDK-21044

          http://bugs.adobe.com/jira/browse/SDK-21044

       

      Modified Paths:

      **************

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/DropDownCont roller.as

          flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.as