We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4947c9 commit 798ae21Copy full SHA for 798ae21
arcade/gui/widgets/slider.py
@@ -98,7 +98,7 @@ def _x_for_value(self, value: float):
98
"""Provides the x coordinate for the given value."""
99
100
x = self.content_rect.left
101
- val = (value - self.min_value) / self.max_value
+ val = (value - self.min_value) / (self.max_value - self.min_value)
102
return x + self._cursor_width + val * (self.content_width - 2 * self._cursor_width)
103
104
@property
0 commit comments