There is a problem with annotation drag listeners. OnDragEnded and in fact also OnDragStarted are called all the time (just like onDragDelta) instead of only on those particular events
Steps to reproduce
just add a listener to annotation (in my case CustomAnnotation)
.withAnnotationDragListener(object : OnAnnotationDragListener {
override fun onDragDelta(annotation: IAnnotation, x: Float, y: Float) {
//whatever
}
override fun onDragStarted(p0: IAnnotation?) {
"onDRAGSTARTED".log()
}
override fun onDragEnded(p0: IAnnotation?) {
"ONDRAGENDED".log()
}
})
Is there a solution?
- Laszlo Bonkers asked 5 years ago
- last active 5 years ago