Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-26854

Scroller VScrollBar's (and probably HScrollBar's) mouseWheel event wrongly handled by the Scroller not the VScrollBar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Adobe Flex SDK 4.1 (Release)
    • None
    • Spark: Scroller
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      Use the attached example, if you hover with the mouse between the item renderers(20px gap between the text from the v layout) from after bla10 to bla 20 (for mx:Text) and from after bla3 to bla 20 (for s:RichText) in the itemRenderer for the List, and scroll with the mouse wheel the event will be taken by the scroller skin not by the VScrollBar and if you scroll from bla1 to bla10 the mouse wheel event will be taken by the VScrollBar. I've tested to find out that this behaviour is only when s:RichText and mx:Text are used and I have no explanation for that at this point.

      You can notice this in my example, because I've only customized the VScrollBar and it scroll by 10px on scroll, and when the skin takes the mouse wheel event it scrolls with the default behaviour which is to jump 3 items up or down.

      Actual Results:
      Customized behaviour of the VScrollbar's mouseWheen event handler is present but only for some item renderers, because the rest events are taken from the Scroller's mouse event handler.

      Expected Results:
      All of the mouseWheel events should be handled by the VScrollbar when over the viewport (itemRenderers + any gaps) and only outside of that region, handled by the Scroller.

      Workaround (if any):
      Make a custom Scroller class (since the mouseWheel handler there at least for now is declared private) with the necessary changes on the mouseWheel handler there.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: