fixing the SnapJS responsive closing behavior