1. 10 Jul, 2017 1 commit
    • Robert Knight's avatar
      Fix adder position when document or body position is offset. · efbdc813
      Robert Knight authored
      Fix positioning of the adder when the document or body elements are
      positioned and offset relative to their default position.
      
      There were two problems:
      
       1. When converting from viewport to "document" coordinates, code in
          `adder.js` and `range-util.js` failed to account for the document
          element's position being offset from the default (0, 0) location.
       2. When setting the adder's top/left coords, `Adder#showAt`
          did not take into account the offset of the body element from the
          document.
      
      This commit fixes the issue by:
      
       1. Using viewport coordinates as far as possible in the range-util and
          Adder functions to reduce the need for converting coordinates.
      
       2. Calculating the position of the adder by comparing the target
          viewport coordinates for the adder and the viewport coordinates of
          the adder's nearest positioned ancestor.
      
      Fixes #487
      efbdc813
  2. 06 Jul, 2017 5 commits
  3. 05 Jul, 2017 11 commits
  4. 04 Jul, 2017 3 commits
  5. 03 Jul, 2017 1 commit
    • Sean Hammond's avatar
      Fix view switcher flash on iOS · 450beedd
      Sean Hammond authored
      The view switcher tabs at the top of the sidebar would flash grey for a
      moment after you clicked one. This removes the flash.
      
      This webkit "tap highlight" is actually an iOS Safari usability feature,
      it indicates to the user that their tap is being successfully recognized, and
      indicates which element they're tapping on. But I don't think it looks
      good with these tabs of ours, and it seems to interact badly with the
      background colour animated transition we're using (it seems to do the
      animated transition first and _then_ flash the tap highlight colour for
      a second).
      
      We're providing this indication by changing the colour of the tab
      anyway, so disable it.
      450beedd
  6. 30 Jun, 2017 2 commits
  7. 29 Jun, 2017 7 commits
  8. 28 Jun, 2017 3 commits
  9. 27 Jun, 2017 7 commits