Translations from viewport to surface coordinates weren't right, and I also wasn't updating the height of a pane when creating new drawings in it.
C6J65647YRXQWO2GS3YAXG5R7KT6DVMEC3J3PJV3JWYN32CKAHTQC
EGS44RTAG7JVLLEA4KH63MBZAD4O5HNRSJQIOC6SRKHUG3G56R6QC
X22MOJHFLXMZQJN4IP2HAXIIVD2ALPR4EO5V5YDYF6QPXS7ZNB6QC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
VHWC2IGQD72ZZUIONIAEP45KPMPX2N6DXN6NU2QGBIWDUHP7INAAC
NR4MDLT4RL46HGPFOH24XD5TWF4WJIWJZQGQEQAGZ2EUM5C7FUZQC
return x+Display_settings.x, y+Display_settings.y
return x+Display_settings.x, y+Display_settings.y-Header_height
--? print('app mouse pressed')
--? print('app mouse pressed', x,y)
--? print('click on pane')
update_metadata(pane)