From 7bad6ffafe82ab6e1cff003062727ea9da445d6f Mon Sep 17 00:00:00 2001 From: Roberto Martins Date: Thu, 25 Jun 2026 12:01:27 +0100 Subject: [PATCH 1/2] fix: increased handle hitbox size --- BlocksScreen/lib/utils/blocks_slider.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BlocksScreen/lib/utils/blocks_slider.py b/BlocksScreen/lib/utils/blocks_slider.py index f122589a..da1025e2 100644 --- a/BlocksScreen/lib/utils/blocks_slider.py +++ b/BlocksScreen/lib/utils/blocks_slider.py @@ -54,7 +54,9 @@ def hit_test(self, pos: QtCore.QPointF) -> bool: bool: If the handle contains the specified position """ _handle_path = QtGui.QPainterPath() - _handle_path.addRoundedRect(self._handle_rect.toRectF(), 6, 6) + self._handle_rect.setSize(QtCore.QSize(60, 55)) + self._handle_rect.adjusted(-20,0,0,0) + _handle_path.addRoundedRect(self._handle_rect.toRectF(), 5, 5) return _handle_path.contains(pos) def _set_slider_pos(self, pos: QtCore.QPointF): From ea0d4701fc2b61114ec35eff2ad2a4f19b172259 Mon Sep 17 00:00:00 2001 From: Roberto Martins Date: Thu, 25 Jun 2026 12:01:52 +0100 Subject: [PATCH 2/2] refactor: ran ruff formatter --- BlocksScreen/lib/utils/blocks_slider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BlocksScreen/lib/utils/blocks_slider.py b/BlocksScreen/lib/utils/blocks_slider.py index da1025e2..5a3d5c4e 100644 --- a/BlocksScreen/lib/utils/blocks_slider.py +++ b/BlocksScreen/lib/utils/blocks_slider.py @@ -55,7 +55,7 @@ def hit_test(self, pos: QtCore.QPointF) -> bool: """ _handle_path = QtGui.QPainterPath() self._handle_rect.setSize(QtCore.QSize(60, 55)) - self._handle_rect.adjusted(-20,0,0,0) + self._handle_rect.adjusted(-20, 0, 0, 0) _handle_path.addRoundedRect(self._handle_rect.toRectF(), 5, 5) return _handle_path.contains(pos)