def METHOD_NAME(self, value):
    self._allow_horizontal = value
    # If the scroll container has content, we need to force a refresh
    # to let the scroll container know how large its content is.
    if self.interface.content:
        self.interface.refresh()
    # Disabling scrolling implies a position reset; that's a scroll event.
    if not value:
        self.interface.on_scroll(None)