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

Redundant code in Scroller: orientation change handler

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • Spark: Scroller
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Found in version: Hero i6 (prerelease)

      orientationChangeHandler seems to be redundant, since the scroll positions depends on scroller/viewport properties (height, contentHeight, etc), not something top and global like device orientation. This brings undesirable dependencies and affects the performance a bit (since it would make double proccessing on orientation change and on component properties change).

      Solution: remove everything regarding orientation.

      If someone will point on checkScrollPosition() and how orientation change affects stopping throwEffect and snapping — it makes more sense to distinguish between viewport's content resize and scroller resize to achieve that. But not the orientation. The code smells... like _global variables.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: