refactor(ags notifs): move the notif gesture file to notif folder

This commit is contained in:
matt1432 2023-10-16 18:37:22 -04:00
parent 9c93e3dafd
commit e021fb08d4
2 changed files with 3 additions and 3 deletions

View file

@ -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: [

View file

@ -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,