bugfix: tapping in scrollbar area
Dependencies
- [2]
EHKB76GOUI improvement: more stable scrollbar movement - [3]
JV27LDDKsliders for font size and color settings - [4]
6DJMOJKEsupport event handlers - [5]
NVZTMKERpartition handlers between screen regions - [6]
IP4LD33Dmouse events for scrollbar - [7]
Z5M23NTKimplement second, 'output' editor - [*]
R5QXEHUIsomebody stop me - [*]
ZM7NOBRMnew fork: carousel shell
Change contents
- file addition: 0151-compute_scrollbar_topy[9.2]
compute_scrollbar_topy = function(state)local f = compute_scrollbar(state)return state.top + f*(state.bottom - state.top)end - replacement in 0036-adjust_scrollbar at line 2
local s = (y-state.scrollbar_offset-state.top) / (state.bottom-state.top)if state.scrollbar_offset then-- draggingy = y-state.scrollbar_offsetendlocal s = (y-state.top) / (state.bottom-state.top) - replacement in 0016-on.mouse_press at line 26
local sbtop = compute_scrollbar(Current_pane.editor_state)Current_pane.editor_state.scrollbar_offset = y - sbtoplocal sbtopy = compute_scrollbar_topy(Current_pane.editor_state)Current_pane.editor_state.scrollbar_offset = y - sbtopyprint(y, sbtopy, y-sbtopy) - replacement in 0016-on.mouse_press at line 36
local sbtop = compute_scrollbar(Current_pane.output_editor_state)local sbtopy = compute_scrollbar_topy(Current_pane.output_editor_state)