Skip to content

Commit 495054a

Browse files
committed
Revert "Slightly modified the slider module to set the system cursor type."
This reverts commit 8f6c0c0.
1 parent 7f1a93a commit 495054a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

libs/simple-slider.lua

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,8 @@ function slider:update(mouseX, mouseY, mouseDown)
7575
if down then
7676
if self.grabbed then
7777
if self.orientation == 'horizontal' then
78-
if setSystemCursorType then
79-
setSystemCursorType('sizewe')
80-
end
8178
self.value = self.value + dx / self.length
8279
elseif self.orientation == 'vertical' then
83-
if setSystemCursorType then
84-
setSystemCursorType('sizens')
85-
end
8680
self.value = self.value - dy / self.length
8781
end
8882
elseif (x > knobX - self.width/2 and x < knobX + self.width/2 and y > knobY - self.width/2 and y < knobY + self.width/2) and not self.wasDown then
@@ -92,9 +86,6 @@ function slider:update(mouseX, mouseY, mouseDown)
9286
end
9387
else
9488
self.grabbed = false
95-
if setSystemCursorType then
96-
setSystemCursorType('arrow')
97-
end
9889
end
9990

10091
self.value = math.max(0, math.min(1, self.value))

0 commit comments

Comments
 (0)