Skip to content

Commit

Permalink
Added placeholder scrolling in Flux
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbarrow committed Nov 3, 2017
1 parent 1032606 commit ad46e3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ const APP_VERSION = '2.1.1';

let electron = require('electron'),
updater = require("electron-updater").autoUpdater,
/*electron_reload = require('electron-reload')(__dirname, {
electron_reload = require('electron-reload')(__dirname, {
ignored: /node_modules|[\/\\]\.|cemui.log|cemui.error.log|cemui.info.log/
}),*/
}),
NodeNUSRipper = require('./NodeNUSRipper.js'),
NUSRipper = new NodeNUSRipper(),
exec = require('child_process').exec,
Expand Down
14 changes: 10 additions & 4 deletions app/Flux/js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ipcRenderer = window.ipcRenderer; // Gets ipcRenderer
var games_lib = document.getElementById('library'),
modal_list = document.getElementById('modal-content-list'),
var games_lib = document.querySelector('#library'),
recents_lib = document.querySelector('#recent'),
modal_list = document.querySelector('#modal-content-list'),
modal_open = false,
clicks = 0,
emulators_list;
Expand Down Expand Up @@ -741,6 +742,11 @@ function clock() {
clock();
setInterval(clock, 1000);

addEvent(games_lib, 'scroll', (event) => {
console.log(event);
addEvent(games_lib, 'mousewheel', (event) => {
games_lib.scrollLeft += -(event.wheelDelta/3);
return false;
});
addEvent(recents_lib, 'mousewheel', (event) => {
recents_lib.scrollLeft += -(event.wheelDelta/3);
return false;
});

0 comments on commit ad46e3c

Please sign in to comment.