compute_scrollbar_topy = function(state) local f = compute_scrollbar(state) return state.top + f*(state.bottom - state.top) end