Daniel Brötzmann pushed to branch master at gajim / gajim
Commits:
5184698c by wurstsalat at 2025-08-11T20:20:01+02:00
fix: Message row actions: Don't scroll when hovering actions bar
Closes #12001
- - - - -
1 changed file:
- gajim/gtk/conversation/rows/widgets.py
Changes:
=====================================
gajim/gtk/conversation/rows/widgets.py
=====================================
@@ -105,12 +105,6 @@ def __init__(self) -> None:
hover_controller.connect("leave", self._on_cursor_leave)
self.add_controller(hover_controller)
- scroll_controller = Gtk.EventControllerScroll(
- flags=Gtk.EventControllerScrollFlags.VERTICAL
- )
- scroll_controller.connect("scroll", self._on_scroll)
- self.add_controller(scroll_controller)
-
def hide_actions(self) -> None:
if self._is_menu_open:
return
@@ -209,18 +203,6 @@ def _on_cursor_leave(self, controller:
Gtk.EventControllerMotion) -> None:
if self._message_row is not None:
self._message_row.remove_css_class("conversation-row-hover")
- def _on_scroll(
- self,
- scroll_controller: Gtk.EventControllerScroll,
- _dx: float,
- dy: float,
- ) -> bool:
- if dy < 0:
- app.window.activate_action("win.scroll-view-up")
- else:
- app.window.activate_action("win.scroll-view-down")
- return Gdk.EVENT_PROPAGATE
-
def _on_reply_clicked(self, _button: Gtk.Button) -> None:
if self._message_row is None:
return
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/5184698c3fa7ea150eb1196e0254f5b224add7a4
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/5184698c3fa7ea150eb1196e0254f5b224add7a4
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]