Add draggable block duration.
Fix a snapping bug