Normalize tgpValueChanged to a UInt while allowing negative slider offsets. Fixes #25
This commit is contained in:
parent
d4c96259b3
commit
c855390498
|
|
@ -279,7 +279,7 @@ public class TGPDiscreteSlider:TGPSlider_INTERFACE_BUILDER {
|
|||
func sendActionsForControlEvents() {
|
||||
// Automatic UIControlEventValueChanged notification
|
||||
if let ticksListener = ticksListener {
|
||||
ticksListener.tgpValueChanged(value: UInt(value))
|
||||
ticksListener.tgpValueChanged(value: UInt(value-minimumValue))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue