3 Replies Latest reply on Mar 15, 2012 4:35 AM by J.LESS

    Disable Flex list auto scrolling on drag over

    Arun Ganesh Level 3

      Hi Folks,

           I have a list, which is dropenabled. I can able to drop the contents from other container to this list. I want to disable the autoscroll option while dragover on this list. Kindly send your ideas to solve this issue.

       

      Thanks in Advance.

       

      With regards,

      Arun P. Ganesh

        • 2. Re: Disable Flex list auto scrolling on drag over
          Adrian P.

          Maybe this can help you:

           

          showDropFeedback()

          Specifies to display the focus rectangle around the target control and positions the drop indicator where the drop operation should occur. If the control has active scroll bars, hovering the mouse pointer over the control's top or bottom scrolls the contents.

          You typically call this method from within the handler for the dragOver event.

          • 3. Re: Disable Flex list auto scrolling on drag over
            J.LESS

            Hy,

            I had the same issue, and found this workaround :

             

            You can disable autoscroll by creating your own component and overriding the dragScroll() method :

             

             

            NoDragScrollList.as

            package {

                  import mx.controls.List;

             

                      public class NoDragScrollList extends List

                      {

                                public function NoDragScrollList()

                                {

                                          super();

                                }

             

                                protected override function dragScroll():void {

                           //do nothing

                                }

             

                      }

            }

             

            Solved my issue.

             

            Hope this helps,

             

            J.LESS