From 3b3de35689126832a5651389b9ba698b596f267a Mon Sep 17 00:00:00 2001 From: pax Date: Tue, 14 Apr 2026 23:25:56 -0500 Subject: [PATCH] grid: raise drag-start threshold to 30px to match rubber band Thumbnail file drag kicked off after only 10px of movement, which made it too easy to start a drag when the user meant to rubber-band select or just click-and-micro-wobble. Bumped to 30px so the gate matches the rubber band's own threshold in `_maybe_start_rb`. behavior change: tiny mouse movement on a thumbnail no longer starts a file drag; you now need to drag ~30px before the OS drag kicks in. --- booru_viewer/gui/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/booru_viewer/gui/grid.py b/booru_viewer/gui/grid.py index a18b5ae..96832d5 100644 --- a/booru_viewer/gui/grid.py +++ b/booru_viewer/gui/grid.py @@ -302,7 +302,7 @@ class ThumbnailWidget(QWidget): self.setCursor(Qt.CursorShape.PointingHandCursor if over else Qt.CursorShape.ArrowCursor) self.update() if (self._drag_start and self._cached_path - and (event.position().toPoint() - self._drag_start).manhattanLength() > 10): + and (event.position().toPoint() - self._drag_start).manhattanLength() > 30): drag = QDrag(self) mime = QMimeData() mime.setUrls([QUrl.fromLocalFile(self._cached_path)])