Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: WickyNilliams/headroom.js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.9.4
Choose a base ref
...
head repository: WickyNilliams/headroom.js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.10.0
Choose a head ref

Commits on Oct 22, 2017

  1. Copy the full SHA
    d9d71bc View commit details

Commits on Jan 2, 2019

  1. adding freeze/unfreeze methods

    Andrei Bulearca committed Jan 2, 2019
    Copy the full SHA
    a1dfefe View commit details

Commits on Mar 2, 2019

  1. update name to frozen

    andreivictor committed Mar 2, 2019
    Copy the full SHA
    83b6d9a View commit details
  2. Merge pull request #309 from andreivictor/master

    Adding methods to freeze / unfreeze the current headroom's state.
    WickyNilliams authored Mar 2, 2019
    Copy the full SHA
    3a5b0fe View commit details

Commits on Mar 3, 2019

  1. Copy the full SHA
    26ff85c View commit details

Commits on Jun 5, 2019

  1. Removed top-level calls to window and document objects for the sake o…

    …f SSR environments
    
    Server side rendering might have document and window objects missing. It should be still possible to import library despite that fact.
    r00dY committed Jun 5, 2019
    Copy the full SHA
    171a5d8 View commit details
  2. Fixed bugs

    r00dY committed Jun 5, 2019
    Copy the full SHA
    d61fab0 View commit details
  3. bugfix

    r00dY committed Jun 5, 2019
    Copy the full SHA
    3d1407f View commit details

Commits on Aug 12, 2019

  1. Merge pull request #288 from nedbaldessin/master

    Performance: switch to passive scroll event listeners.
    WickyNilliams authored Aug 12, 2019
    Copy the full SHA
    accb59b View commit details
  2. Copy the full SHA
    4e7969d View commit details
  3. remove bower support

    WickyNilliams committed Aug 12, 2019
    Copy the full SHA
    536357f View commit details

Commits on Aug 22, 2019

  1. Copy the full SHA
    3e42c2b View commit details
  2. Copy the full SHA
    2bbf73e View commit details
  3. Copy the full SHA
    088da09 View commit details
  4. Copy the full SHA
    6c925b0 View commit details
  5. Copy the full SHA
    c16361e View commit details
  6. Copy the full SHA
    150d90e View commit details
  7. format with prettier

    WickyNilliams committed Aug 22, 2019
    Copy the full SHA
    95f4709 View commit details
  8. Copy the full SHA
    3f77e94 View commit details
  9. Copy the full SHA
    b221534 View commit details
  10. use cypress for tests

    WickyNilliams committed Aug 22, 2019
    Copy the full SHA
    0cdc0d2 View commit details
  11. remove old toolchain

    WickyNilliams committed Aug 22, 2019
    Copy the full SHA
    5923a55 View commit details
  12. Copy the full SHA
    32bea4c View commit details
  13. Feature/modern tooling (#324)

    Feature/modern tooling. Closes #314
    WickyNilliams authored Aug 22, 2019
    Copy the full SHA
    5b62d65 View commit details

Commits on Aug 29, 2019

  1. Copy the full SHA
    352a187 View commit details
  2. fix incorrect calculation for "bottom" on non-window scrollers (#326)

    fix incorrect calculation for "bottom" on non-window scrollers
    WickyNilliams authored Aug 29, 2019
    Copy the full SHA
    cd46a7d View commit details

Commits on Sep 3, 2019

  1. Copy the full SHA
    fdc4ebb View commit details
  2. Merge pull request #318 from r00dY/master

    Removed top-level calls to window and document to make lib work with SSR
    WickyNilliams authored Sep 3, 2019
    Copy the full SHA
    469a74c View commit details
  3. Copy the full SHA
    c6ccfc5 View commit details
  4. Copy the full SHA
    9548a90 View commit details
  5. Copy the full SHA
    4e883a5 View commit details
  6. Copy the full SHA
    4cdf79d View commit details
  7. Copy the full SHA
    40f4aff View commit details
  8. Copy the full SHA
    681d51a View commit details
  9. Copy the full SHA
    17ca064 View commit details
  10. Copy the full SHA
    8cec89b View commit details
  11. Copy the full SHA
    18975e1 View commit details

Commits on Sep 10, 2019

  1. Copy the full SHA
    bdb18a1 View commit details
  2. delete old tests

    WickyNilliams committed Sep 10, 2019
    Copy the full SHA
    e9f3afa View commit details
  3. Copy the full SHA
    32067f8 View commit details
  4. Copy the full SHA
    3989714 View commit details
  5. Copy the full SHA
    3af07b9 View commit details
  6. further file size shavings

    oops
    WickyNilliams committed Sep 10, 2019
    Copy the full SHA
    1341555 View commit details
  7. Copy the full SHA
    4ed261d View commit details
  8. Copy the full SHA
    35709d5 View commit details
  9. add tests for callbacks

    WickyNilliams committed Sep 10, 2019
    Copy the full SHA
    6c12e12 View commit details
  10. Copy the full SHA
    377acfa View commit details
  11. Copy the full SHA
    931a5f3 View commit details
  12. Copy the full SHA
    6e85771 View commit details

Commits on Sep 11, 2019

  1. Big bag o' tweaks (#330)

    Big bag o' tweaks
    WickyNilliams authored Sep 11, 2019
    Copy the full SHA
    3dc81ce View commit details
Showing with 4,057 additions and 1,324 deletions.
  1. +36 −0 .eslintrc
  2. +2 −1 .gitignore
  3. +0 −31 .jshintrc
  4. +13 −4 .travis.yml
  5. +0 −116 Gruntfile.js
  6. +59 −135 README.md
  7. +0 −33 bower.json
  8. +3 −0 cypress.json
  9. +296 −0 cypress/fixtures/index.html
  10. +13 −0 cypress/integration/.eslintrc
  11. +291 −0 cypress/integration/headroom.spec.js
  12. +17 −0 cypress/plugins/index.js
  13. +25 −0 cypress/support/commands.js
  14. +115 −0 cypress/support/index.js
  15. +2,797 −0 package-lock.json
  16. +11 −16 package.json
  17. +55 −0 rollup.config.js
  18. +0 −12 spec/.jshintrc
  19. +0 −95 spec/Debouncer.spec.js
  20. +0 −491 spec/Headroom.spec.js
  21. +0 −23 spec/helpers/polyfill.js
  22. +0 −41 src/Debouncer.js
  23. +149 −296 src/Headroom.js
  24. +36 −6 src/features.js
  25. +0 −24 src/include/wrapper.js
  26. +86 −0 src/scroller.js
  27. +53 −0 src/trackScroll.js
36 changes: 36 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"env": {
"browser": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"no-unused-expressions": "error",
"no-bitwise": "error",
"camelcase": "error",
"curly": "error",
"eqeqeq": "error",
"wrap-iife": ["error", "any"],
"no-use-before-define": [
"error",
{
"functions": false
}
],
"linebreak-style": "error",
"new-cap": "error",
"no-caller": "error",
"quotes": ["error", "double"],
"indent": [
"error",
2,
{
"SwitchCase": 1
}
]
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist/
dist/
.vscode
31 changes: 0 additions & 31 deletions .jshintrc

This file was deleted.

17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
language: node_js
node_js:
- "0.8"
- "0.10"
before_script:
- npm install -g grunt-cli
- "10"
addons:
apt:
packages:
# Ubuntu 16+ does not install this dependency by default, so we need to install it ourselves
- libgconf-2-4
cache:
# Caches $HOME/.npm when npm ci is default script command
# Caches node_modules in all other cases
npm: true
directories:
# we also need to cache folder with Cypress binary
- ~/.cache
116 changes: 0 additions & 116 deletions Gruntfile.js

This file was deleted.

Loading