don't draw highlight if State didn't receive mouse_press

akkartik
Dec 2, 2023, 4:31 AM
IOTIKKUCGADX5V2F5XNRKWEPYTP6YQKL5V44R5KHMGH6JEBBSHGAC

Dependencies

  • [2] R2ASHK5C fix a bad merge
  • [3] QJISOCHJ some temporary logging to catch a bug
  • [4] LF7BWEG4 group all editor globals
  • [5] LXTTOB33 extract a couple of files
  • [6] DRFE3B3Z mouse buttons are integers, not strings
  • [7] JFFUF5AL override mouse state lookups in tests
  • [8] MXA3RZYK deduce left/right from state where possible
  • [9] S2MISTTM add state arg to a few functions
  • [10] 4CXVIEBS add args to some functions
  • [*] 2L5MEZV3 experiment: new edit namespace

Change contents

  • replacement in select.lua at line 14
    [3.44671][3.1185:1213]()
    if App.mouse_down(1) then
    [3.44671]
    [3.4008]
    if State.mouse_down then
  • edit in edit.lua at line 162
    [2.1861]
    [2.1861]
    State.mouse_down = mouse_button
  • edit in edit.lua at line 213
    [2.3608]
    [2.3608]
    State.mouse_down = nil