1. 24 Feb, 2015 1 commit
  2. 23 Feb, 2015 3 commits
  3. 22 Feb, 2015 3 commits
    • gergely-ujvari's avatar
      Merge pull request #1949 from hypothesis/1928-fix-realtime-delete · e009194e
      gergely-ujvari authored
      Fix real-time delete
      e009194e
    • csillag's avatar
      Adding tests for applyUpdate · 56de2455
      csillag authored
      56de2455
    • csillag's avatar
      Fix real-time delete · 5b488a77
      csillag authored
      When receiving a real-time notification about the removal
      of an annotation, we emit an annotationDeleted event,
      so that all components can react.
      
      Earlier, we emited this event simply with the Annotation
      bject that arrived on the wire.
      
      However, some components couldn't deal with this, because
      they were expecting to see the 'real' Annotation object,
      the ones they already knew about.
      
      So now we do a lookup before emiting the event, and use
      the locally found objects instead.
      5b488a77
  4. 20 Feb, 2015 6 commits
  5. 18 Feb, 2015 1 commit
    • csillag's avatar
      Change the scrolling API · 06152dca
      csillag authored
      The goal of this change is to avoid any false appearance
      that we are implementing the proposed scrollIntoView() API [1],
      while we clearly don't.
      
      So, changes:
      
       - Rename scrollIntoView to scrollToView
         on both Anchor and Highlight
       - Stop returning promises at both methods
      
      I also updated all the tests to reflect this change.
      
      [1] http://dev.w3.org/csswg/cssom-view/#dom-element-scrollintoview
      06152dca
  6. 17 Feb, 2015 1 commit
  7. 16 Feb, 2015 4 commits
  8. 14 Feb, 2015 2 commits
  9. 13 Feb, 2015 3 commits
  10. 12 Feb, 2015 3 commits
  11. 11 Feb, 2015 8 commits
  12. 10 Feb, 2015 5 commits
    • csillag's avatar
      Add/update test suite for scrolling · 745be4ef
      csillag authored
      745be4ef
    • csillag's avatar
      Refactor / fix scrolling. · 025cc7ea
      csillag authored
      EnhancedAnchoring plugin:
       - add `getAnchors()` method
       - add `scrollIntoView()` method
       - move some code from the bucket-bar
      
      TextHighlight plugin:
       - get rid of padded scrolling
       - scrollIntoView() no returns a promise
      
      Other:
       - When we click on an annotation card in the sidebar, we need to
         go to the anchor in the document. However, the highlight might
         not exist at this point, so we should look for the Anchor instead.
         So now we call `scrollIntoView()` onthe anchor.
       - The same goes when we click the arrows on the bucket bar
       - Rename `scrollTo` to `scrollIntoView` everywhere.
      025cc7ea
    • gergely-ujvari's avatar
      Merge pull request #1931 from hypothesis/anchoring-testing · 4db68d8a
      gergely-ujvari authored
      Switch two-phase anchoring tests to async
      4db68d8a
    • csillag's avatar
      Code comments · 799850cb
      csillag authored
      799850cb
    • csillag's avatar
      Switch two-phase anchoring tests to async · bb11fd65
      csillag authored
      One of the pains with working with lazy-rendering platforms
      is that events often happen asynchronously.
      
      Now the test suite for two-phased anchoring reflects this
      constraint better.
      bb11fd65