flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34340) NumericStepper still responds to mouse wheel after being removed from stage
Date Wed, 18 Jun 2014 21:12:25 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14036395#comment-14036395
] 

Alex Harui commented on FLEX-34340:
-----------------------------------

If you are removing a component from the stage without intention to replace it right away,
for usability purposes you should set focus to some other control on stage and then this problem
should be avoided.

> NumericStepper still responds to mouse wheel after being removed from stage
> ---------------------------------------------------------------------------
>
>                 Key: FLEX-34340
>                 URL: https://issues.apache.org/jira/browse/FLEX-34340
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: NumericStepper
>    Affects Versions: Apache Flex 4.12.0
>            Reporter: Mihai Chira
>         Attachments: _stepperStillRespondingToWheel.fxp
>
>
> *Steps to reproduce*:
> 0. Import and run the attached project.
> 1. Click on the numeric stepper.
> 2. Roll the mouse wheel. Notice label changing as expected.
> 3. Shift+Click on the numeric stepper and wait for it to be removed from stage.
> 4. Roll the mouse wheel. Notice label changing, although the component is not on stage
anymore.
> 5. Wait 2 seconds for stepper to be 'dismantled'.
> 6. Roll the mouse wheel
> *Actual behaviour*: at step 4 the NumericStepper still reacts to mouse wheel events.
Also, at step 6, the RTE below is thrown.
> *Desired behaviour*: at step 4 the NumericStepper does not react to the mouse wheel anymore,
and at step 6 no error is thrown.
> *NOTE*: After step 4, rolling the mouse wheel after clicking anywhere on stage works
as expected.
> *RTE at step 6*:
> Main Thread (Suspended: TypeError: Error #1009: Cannot access a property or method of
a null object reference.)	
> 	spark.components::NumericStepper/applyDisplayFormatFunction	
> 	spark.components::NumericStepper/setValue	
> 	spark.components::Spinner/system_mouseWheelHandler	
> 	_NumericStepper/system_mouseWheelHandler	
> 	flash.events::EventDispatcher/dispatchEventFunction [no source]	
> 	flash.events::EventDispatcher/dispatchEvent [no source]	
> 	mx.core::UIComponent/dispatchEvent	
> 	mx.managers::SystemManager/mouseEventHandler	



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message