Create at the tapped hour after a zoom (#148)

The week/day tap detector captured the hour height when pointerInput was
installed, and pointerInput only restarts when its keys change — so after a
pinch or a Settings hour-height change, taps were mapped against the old
spacing and created events at the wrong hour. Read the height (and the
callback) through rememberUpdatedState instead, and move the offset-to-minute
arithmetic into a tested tappedMinuteOfDay.
This commit is contained in:
2026-08-06 19:47:40 +02:00
parent 6a125b7c73
commit 537d267e9f
5 changed files with 64 additions and 4 deletions

View File

@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- Tapping an empty slot in week or day view creates the event at the hour you
tapped, after the timeline has been zoomed. Pinching the day taller or shorter
— or changing **Hour height** in Settings — left the tap still being measured
against the old spacing, so the new event landed at some other hour entirely
([#148]).
## [2.18.0] — 2026-07-31
### Added
@@ -1323,3 +1330,4 @@ automatically, with zero telemetry and no internet permission.
[#57]: https://codeberg.org/jlmakiola/calendula/issues/57
[#56]: https://codeberg.org/jlmakiola/calendula/issues/56
[#114]: https://codeberg.org/jlmakiola/calendula/issues/114
[#148]: https://codeberg.org/jlmakiola/calendula/issues/148