Rev546, Sidebar drag fix, Fix rebuild on dbschema changes, Test Dbschema changes, Fix atomicWrite error when old file already exists

This commit is contained in:
HelloZeroNet 2015-11-05 23:19:36 +01:00
parent bd67d8fe14
commit c2fc131cdc
9 changed files with 31 additions and 8 deletions

View file

@ -33,6 +33,7 @@ window.initScrollable = function () {
contentPosition = scrollContentWrapper.scrollTop;
scrollerBeingDragged = true;
window.addEventListener('mousemove', scrollBarScroll)
return false
}
function stopDrag(evt) {
@ -42,6 +43,7 @@ window.initScrollable = function () {
function scrollBarScroll(evt) {
if (scrollerBeingDragged === true) {
evt.preventDefault();
var mouseDifferential = evt.pageY - normalizedPosition;
var scrollEquivalent = mouseDifferential * (scrollContentWrapper.scrollHeight / scrollContainer.offsetHeight);
scrollContentWrapper.scrollTop = contentPosition + scrollEquivalent;