├── .editorconfig ├── .gitignore ├── LICENSE ├── README.md ├── bower.json ├── dist └── 60fps-scroll.js ├── gulpfile.js ├── package.json └── src ├── main.js └── utils.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # editorconfig.org 2 | root = true 3 | 4 | [*] 5 | indent_style = space 6 | indent_size = 4 7 | end_of_line = lf 8 | charset = utf-8 9 | trim_trailing_whitespace = true 10 | insert_final_newline = true -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist/main.js 3 | dist/utils.js -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2013 Ryan Seddon 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy of 6 | this software and associated documentation files (the "Software"), to deal in 7 | the Software without restriction, including without limitation the rights to 8 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 9 | the Software, and to permit persons to whom the Software is furnished to do so, 10 | subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 17 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 18 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 19 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 20 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Deprecated! 2 | 3 | ## Why? 4 | 5 | Chrome has released a fix that stops mouse events from firing when scrolling so you don't need this lib any more. See Chrome [status page](https://www.chromestatus.com/feature/5697181675683840). 6 | 7 | 8 | 60fps-scroll 9 | ============ 10 | 11 | A little library that *could* make your site scroll faster. 12 | 13 | ## Bower 14 | 15 | 60fps-scroll can be installed from [Bower](http://twitter.github.com/bower/) using the following command: 16 | 17 | ```bash 18 | $ bower install 60fps-scroll 19 | ``` 20 | 21 | ## Usage 22 | 23 | To use just include at the bottom of your page or bundle with your scripts in a build process. The library will automatically handle everything else. 24 | 25 | ## Context 26 | 27 | For some context on why you may want to use this checkout my article: [A follow up to obtaining 60fps scrolling performance](http://www.thecssninja.com/javascript/follow-up-60fps-scroll) 28 | 29 | ## License 30 | 31 | Copyright 2013, Ryan Seddon 32 | This content is released under the MIT license 33 | http://ryanseddon.mit-license.org 34 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "60fps-scroll", 3 | "version": "0.1.1", 4 | "homepage": "https://github.com/ryanseddon/60fps-scroll", 5 | "authors": [ 6 | "Ryan Seddon" 7 | ], 8 | "description": "A little library that *could* make your site scroll faster", 9 | "main": "dist/60fps-scroll.js", 10 | "keywords": [ 11 | "60fps", 12 | "Scroll performance" 13 | ], 14 | "license": "MIT", 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests", 21 | "src", 22 | "dist/main.js", 23 | "dist/utils.js" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /dist/60fps-scroll.js: -------------------------------------------------------------------------------- 1 | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o