scroll_type = self.scroll_type it is just a cache pointing to self.scroll_type in addition to this the whole checking for touch being inside the bars is not here but moved a bit above in the course of fixing a few bugs. your changes don't work with the latest master.