fixed snapping and keyframe delete bugs