Skip to content

Release 7.2.0

Compare
Choose a tag to compare
@thet thet released this 16 Mar 08:20
· 1102 commits to master since this release

7.2.0 (2022-03-16)

Features

  • core dom: Add find_scroll_container to find a scrollable element up in the DOM tree. (d9eef9e)

  • pat inject: Rework autoload-visible to use an IntersectionObserver. (4f26006)
    The autoload-visible trigger of pat-inject now uses an IntersectionObserver.
    This simplifies the code and improves performance because there are no more complex position calculations involved.

Fixes: #955

  • pat inject: Support delay time for trigger: autoload-visible. (d951817)

Maintenance

  • Upgrade dependencies. (2590bcf)

  • core dom: Move utils.getCSSValue to dom.get_css_value and keep a BBB import. (25e1846)
    Move utils.getCSSValue to dom.get_css_value and keep a BBB import in utils.
    This change is made for these reasons:

  • Avoid circular imports (even if supported).
  • Code cleanup - move DOM related methods to dom module.
  • pat bumper: Update import for get_css_value. (ccff688)

  • pat bumper: Use new core.dom.find_scroll_container instead own implementation. (ab98985)

  • pat gallery: Update import for get_css_value. (3268b1e)

  • pat inject: Update import for get_css_value. (e378e51)

  • pat scroll: Use new core.dom.find_scroll_container instead own implementation. (3872aaf)

  • pat tabs: Update import for get_css_value. (ce50044)

  • tests: Add an IntersectionObserver mock for testing. (8e84d0f)