1 Reply Latest reply on Jan 20, 2012 10:52 AM by bmilesp

    any way to disable scrolling on a scroller?

    bmilesp Level 1

      I have a scroller wrapped around a group. i also have some draggable items in the group, and if a draggable item is clicked on i would like to disable scrolling temporarily. then when the item is dropped i would like to reactivate scrolling. I cant seem to find any properties on the scroller to enable or disable scrolling. any ideas on how to achieve this?

        • 1. Re: any way to disable scrolling on a scroller?
          bmilesp Level 1

          I've found out how to disable scrolling. simly use the horizontalScrollPolicy and verticalScrollPolicy styles. Set them to 'off' like so:

           

          scroller.setStyle('horizontalScrollPolicy', 'off');

          scroller.setStyle('verticalScrollPolicy', 'off');

           

           

          then set them to 'on' or 'auto' again when you want to re-enable them.