Preventing scroll functionality when in edit mode