Normalize tgpValueChanged to a UInt while allowing negative slider offsets. Fixes #25

This commit is contained in:
Xavier Schott 2017-04-15 22:42:17 -07:00
parent d4c96259b3
commit c855390498
1 changed files with 1 additions and 1 deletions

View File

@ -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))
}
}