AnsweredAssumed Answered

Drag and Drop onDragPointerMove Stops Map Scrolling

Question asked by sauegr01 on Jan 21, 2013
Latest reply on Jan 24, 2013 by sauegr01
Hello, I am trying to drag an image/graphic from its location to another location. I have added the onDragPointerMove method to my touch listener, but when I run the app I can no longer scroll around the map, it is constantly detecting a drag pointer. So when trying to scroll/move the map to a new location, it does not move correctly. I have tried returning false expecting it to skip the method, but it reacts the same way. Any help or suggestions are greatly appreciated. Below is the code I am using:

  public boolean onDragPointerMove(MotionEvent from, MotionEvent to) {

   //Checks to see if the drag is occuring on a graphic
   int[] ids = graphicsLayer.getGraphicIDs(from.getX(), from.getY(), 25);
   if (ids != null && ids.length > 0) {
    return true;
   }
   return false;
  }//end of onDragPointerMove

Thanks.

Outcomes