v2.1.0

Textualize/textualv2.1.0Feb 19, 2025by willmcgugan

AI Summary

A feature and bug fix release introducing pointer coordinate attributes to mouse events and fixing smooth scrolling issues across different terminals.

Key Highlights

  • Added `pointer_x`, `pointer_y`, `pointer_screen_x`, and `pointer_screen_y` attributes to mouse events
  • Fixed smooth scrolling broken on iTerm over SSH
  • Fixed height of auto containers with auto height children
  • Renamed `TerminalSupportsInBandWindowResize` to `InBandWindowResize`

New Features

  • `pointer_x`, `pointer_y`, `pointer_screen_x`, and `pointer_screen_y` attributes to mouse events

Full Release Notes

Mostly fixes in this release, and a small feature.

The mouse event adds `pointer_*` attributes which contain the pointer coordinates in pixel resolution (if supported by your terminal). 

## [2.1.0] - 2025-02-19

### Fixed

- Fixed smooth scrolling broken on iTerm over SSH https://github.com/Textualize/textual/pull/5551
- Fixed height of auto container which contains auto height children https://github.com/Textualize/textual/pull/5552
- Fixed `Content.from_markup` not stripping control codes https://github.com/Textualize/textual/pull/5557
- Fixed `delta_x` and `delta_y` in mouse events when smooth scrolling is enabled https://github.com/Textualize/textual/pull/5556
- Fixed flipped title colors in panel border https://github.com/Textualize/textual/issues/5548
- Fixed detection of smooth scrolling https://github.com/Textualize/textual/pull/5558

### Added

- Added `pointer_x`, `pointer_y`, `pointer_screen_x`, and `pointer_screen_y` attributes to mouse events https://github.com/Textualize/textual/pull/5556

### Changed

- Animating the scrollbar while dragging is disabled if smooth scrolling is available https://github.com/Textualize/textual/pull/5558
- Renamed `TerminalSupportsInBandWindowResize` to `InBandWindowResize` https://github.com/Textualize/textual/pull/5558