1. 25 May, 2023 4 commits
  2. 23 May, 2023 1 commit
    • Robert Knight's avatar
      Enable host page to respond async to `scrolltorange` event · fc3c29a4
      Robert Knight authored
      Add a `waitUntil` method to the `scrolltorange` event which allows the host page
      to signal to the client that it should wait for async work to complete before
      the client attempts to scroll to a highlight. This is useful in web applications
      which need to perform an async re-render of the UI before the content can be
      scrolled to.
      
      The initial use case is enabling Via's video player app to clear transcript
      search filters and re-render the Preact UI before scrolling to a highlight [1]
      
      [1] See https://github.com/hypothesis/via/pull/932.
      fc3c29a4
  3. 22 May, 2023 10 commits
  4. 19 May, 2023 1 commit
  5. 18 May, 2023 4 commits
  6. 17 May, 2023 10 commits
  7. 16 May, 2023 8 commits
  8. 15 May, 2023 2 commits
    • Robert Knight's avatar
      Update bucket bar when scrollable containers are scrolled · 62a3f966
      Robert Knight authored
      The bucket bar updated the location of buckets when the document or root content
      element was scrolled, but not when scrollable descendants (eg.  created by
      `overflow: scroll`) were scrolled. This is because we were listening for the
      `scroll` event, which does not bubble. Use a capture listener instead.
      
      Fixes #5463
      62a3f966
    • Robert Knight's avatar
      Fix `ListenerCollection.remove` for capture listeners · f8e56c31
      Robert Knight authored
      Call `removeEventListener` with the same options that were passed to
      `addEventListener`. Otherwise if non-default options were passed,
      `removeEventListener` will not remove the listener.
      f8e56c31