Add time snapping when dragging events and blocks.