Change scrolling behavior to enable touch scroll. Fix #466

This commit is contained in:
Jordan
2022-01-22 15:30:02 -05:00
parent 1b38dbb36a
commit 4b0b937c41
11 changed files with 22 additions and 0 deletions

View File

@@ -20,6 +20,8 @@ class MacroPanel(ScreenPanel):
scroll = Gtk.ScrolledWindow()
scroll.set_property("overlay-scrolling", False)
scroll.set_vexpand(True)
scroll.add_events(Gdk.EventMask.TOUCH_MASK)
scroll.add_events(Gdk.EventMask.BUTTON_PRESS_MASK)
# Create a grid for all macros
self.labels['macros'] = Gtk.Grid()