optionally considered: on mobile, pan two-fingers only, one finger = auto paint + get rid of tool toggle
⇒ abandoned, because code was behaving weirdly
I've added maps style zoom buttons
added "hi dpi render scale"
PDF previews were bitmap rendered at device resulution, became very pixelated at even low zoom
currently set a 2x, but could depend on display size (but probably something smarted, capped at, like 2k)
note the tool toggle on the left and the zoom ui:
last minute TODO: the tooltip I've added to the tool toggles doesn't respect data-bs-placement (I don't know why), so I might just disable the tooltip on mobile, where it can block the other button, and is generally in the way.
placement does work, it just flips to right for the long titles
I've implemented a way to auto-hide the tooltips after a timeout (set to 3s), after focusin events - this won't affect mouse users, but mobile touchers and (unfortunately) keyboard users. A cleaner fix would send adequate events from panzoom to focusout the tooltips...
At the moment this contains pdfupload-fixes; I will rebase as soon as that lands.
note the tool toggle on the left and the zoom ui:
last minute TODO: the tooltip I've added to the tool toggles doesn't respectdata-bs-placement
(I don't know why), so I might just disable the tooltip on mobile, where it can block the other button, and is generally in the way.placement
does work, it just flips toright
for the longtitle
sfocusin
events - this won't affect mouse users, but mobile touchers and (unfortunately) keyboard users. A cleaner fix would send adequate events from panzoom tofocusout
the tooltips...