diff --git a/hosts/wim/config/ags/js/notifications/base.js b/hosts/wim/config/ags/js/notifications/base.js index 8dbc811b..ff5ab1f5 100644 --- a/hosts/wim/config/ags/js/notifications/base.js +++ b/hosts/wim/config/ags/js/notifications/base.js @@ -4,7 +4,7 @@ const { Box, Icon, Label, Button } = Widget; import GLib from 'gi://GLib'; -import { Draggable } from '../misc/drag.js'; +import Gesture from '../misc/drag.js'; import { EventBox } from '../misc/cursorbox.js' @@ -92,7 +92,7 @@ export default ({ notif, command = () => {}} = {}) => { return; } - return Draggable({ + return Gesture({ maxOffset: 200, command: () => command(), properties: [ diff --git a/hosts/wim/config/ags/js/misc/drag.js b/hosts/wim/config/ags/js/notifications/gesture.js similarity index 99% rename from hosts/wim/config/ags/js/misc/drag.js rename to hosts/wim/config/ags/js/notifications/gesture.js index fa3fea41..2f9f035f 100644 --- a/hosts/wim/config/ags/js/misc/drag.js +++ b/hosts/wim/config/ags/js/notifications/gesture.js @@ -6,7 +6,7 @@ import Gdk from 'gi://Gdk'; const display = Gdk.Display.get_default(); -export const Draggable = ({ +export default ({ maxOffset = 150, startMargin = 0, endMargin = 300,