Skip to content
This repository was archived by the owner on Apr 17, 2019. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions app/js/flashcards.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,14 +503,6 @@ define(['getMessage', 'license', 'sound'], function (getMessage, license_init, G
}
};

/**
* FlashCards.scrollNavPane will scroll the navigation Pane the direction the user moves the mouse
* @private
*/
FlashCards.prototype.scrollNavPane = function (delta) {
document.getElementById("scroll-items").style.webkitTransform = "translateY("+delta+"px)";
};

/**
* FlashCards.setGameEventListeners sets event handlers for the game
* @private
Expand All @@ -527,19 +519,6 @@ define(['getMessage', 'license', 'sound'], function (getMessage, license_init, G
document.getElementById("nav-pane").addEventListener('click', function () {
self.navPaneClicked();
}, false);
document.getElementById("scroll-overlay").addEventListener('mousedown', function (e) {
starty = e.clientY;
isDrag = 0; //mouse down
}, false);
document.getElementById("scroll-overlay").addEventListener('mousemove', function (e) {
isDrag = 1; //mouse move
}, false);
document.getElementById("scroll-overlay").addEventListener('mouseup', function (e) {
if(isDrag === 1) { //if equals 1 is drag event
self.scrollNavPane((-1)*(starty-e.clientY));
}
isDrag = -1; //regardless reset endy
}, false);
document.getElementById("shape-deck").addEventListener('click', function (e) {
e.stopPropagation();
self.shapeDeckClicked();
Expand Down