def mouse_up(self, event): if self.dragging_hhover: self.dragging_hhover = False self.hscroll_rel = 0 PaletteView.mouse_up(self, event)