views:

38

answers:

0

I'm implementing some marker draggable behaviour in an ItemizedOverlay class by overriding the onTouchEvent which works fine - I can drag markers around and the map stays stationary or if I start the drag on the map itself, then the map scrolls and the markers stay stationary (this is my intended behaviour). However, I wanted an additional event such as onLongPress and so I changed my code to use a gesture detector which extends SimpleOnGestureListener. It kind of works in the same way but now when I click on a marker to start dragging it, the mapview moves but only on the down action - the rest of the dragging motion is okay. It seems as if the mapview has caught the onDown MotionEvent and reacts to it but I deferred this to my gesture detector and I'm returning true from it. Has anyone else come across this annoying behaviour?