Просмотр исходного кода

fixed issue where scrolling stopped working

master
mort 8 лет назад
Родитель
Сommit
4768c5f94e
2 измененных файлов: 3 добавлений и 3 удалений
  1. 2
    2
      data/onload.js
  2. 1
    1
      package.json

+ 2
- 2
data/onload.js Просмотреть файл

@@ -1,5 +1,5 @@
var conf = {
scroll_speed: 0.4,
scroll_speed: 0.3,
scroll_speed_fast: 1.1,
scroll_friction: 0.8,
chars: "SANOTEHUCP",
@@ -393,7 +393,7 @@ var scroll = {
scroll.velocity *= conf.scroll_friction;
}

if (tdiff < 100 && scroll.velocity < -0.1 && scroll.velocity > 0.1) {
if (tdiff < 100 && scroll.velocity > -0.1 && scroll.velocity < 0.1) {
scroll.velocity = 0;
cancelAnimationFrame(scroll.raf);
scroll.raf = null;

+ 1
- 1
package.json Просмотреть файл

@@ -1,7 +1,7 @@
{
"title": "Mouseless",
"name": "mouseless",
"version": "0.2.4",
"version": "0.2.5",
"description": "For a mouseless future.",
"main": "index.js",
"author": "Martin Dørum Nygaard",

Загрузка…
Отмена
Сохранить