scroll when focusing widgets

This commit is contained in:
Eduardo Bart
2012-06-01 21:38:26 -03:00
parent ba01909088
commit 59a80ffaf9
14 changed files with 38 additions and 21 deletions

View File

@@ -126,11 +126,13 @@ function UIScrollBar:onStyleApply(styleName, styleNode)
end
end
function UIScrollBar:decrement()
function UIScrollBar:decrement(count)
count = count or self.step
self:setValue(self.value - self.step)
end
function UIScrollBar:increment()
function UIScrollBar:increment(count)
count = count or self.step
self:setValue(self.value + self.step)
end