Skip to content

Ink Notes 0.1.5-beta.47

Pre-release
Pre-release

Choose a tag to compare

@mgHurryo mgHurryo released this 14 Nov 08:29
· 8 commits to master since this release
aaad477

Wheel-gestures migration (#472) and tool-popover anchoring (#473).

Highlights

  • Touchpad input now runs through the wheel-gestures library: one page per gesture on BOTH axes, momentum never pages, native panning inside the page - the same-direction swipe deadlock ("second swipe swallowed until you reverse") is structurally gone, and the scrollbar-gutter edge misjudgment ("15px left but cannot scroll") is fixed (#472)
  • Brush/highlighter/eraser/lasso menus open beside their toolbar button instead of drifting - the same CSS-containment root cause the tag popover fixed; sliders paint a 4px track and 16px thumb; Escape reliably closes the lasso panel (#473)
  • Fast paging needs three separate gestures within one second (one page per gesture) - a real cadence change to verify by hand

Changes

  • Route both wheel axes through the wheel-gestures library (#472): the hand-rolled touchpad inertia state machine (every renewal/probation/deferral/envelope heuristic accumulated since #320, including #456's sustained-swipe window) is retired in favor of wheel-gestures@2.3.0 (exact-pinned, MIT, no runtime dependencies, notices added) recognizing gesture phases and momentum, with the application keeping only policy: a 48px threshold on BOTH axes, one page per continuous gesture, momentum samples never page, discrete mouse notches keep their own two-pages-per-gesture path, and the fast-paging pacer (3 flips in 1s) is unchanged. This structurally removes the same-direction-swipe deadlock family (Chromium #1: the second forward swipe is no longer swallowed by the previous gesture's tail — each physical contact is its own gesture) and the ghost-page flips the envelope heuristics could mint. Both axes pan natively inside the page (custom handling owns only boundaries and page transitions), fixing the Chromium stable-scrollbar gutter misjudging the horizontal edge as scrollable ("15px left but cannot scroll"); opening the preview rail at fit width no longer lets its transient overflow consume a page swipe; the pen-ownership path keeps feeding the recognizer so momentum/lift transitions survive writing; clearing the preview rail resets it. 60 private-contract tests of the old machine retire, replaced by recorded real-device fixtures (Windows Precision Trackpad captures, double-swipe, slow drag), a recorded-replay unit suite, and 12 browser regressions per engine added to CI smoke (continuous same-direction input, inertia, real native panning, last-10px, boundary flips, rail takeover). Known residual: the Windows recordings come from upstream Chrome 81 captures, so Obsidian/Electron on-device validation and real large-PDF/long-session memory remain outstanding; fast paging now needs three separate gestures within one second (one page per gesture), a real cadence change to verify by hand.
  • Anchor and restyle the tool settings popovers (#473): brush/highlighter/eraser/lasso menus now open beside their toolbar button inside the editor instead of drifting with viewport coordinates — the same CSS-containment root cause the page-tag popover fixed (#466): placePopover converts viewport rects into the containing block's coordinates via offsetParent, absorbs transform scale and CSS zoom through the getBoundingClientRect/offsetWidth ratio, measures unanimated offset dimensions so the open animation cannot move the panel, and drives internal scrolling from maxWidth/--ink-popover-available-height; the lasso panel's inline copy of the same wrong-coordinate math is replaced by the shared helper; the brush panel stays visibility:hidden until its rAF position lands (no static-position flash); all three panels follow split resizes through the pane's existing ResizeObserver; Escape closes the lasso panel on capture without blocking the editor's shortcut; sliders keep a 28px hit area but paint a 4px track and a 16px thumb scoped to tool menus (Obsidian paints the track on the input background and the plugin's min-height stretched it); the color row wraps with the add button. A 12-case Chromium/WebKit menu matrix (offset panes, 125% transform, 125% zoom, narrow light windows, short windows, upward popovers) joins CI smoke.