Added the possibility to trigger a callback when dragging