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

@ -95,6 +95,7 @@ window.initScrollable = function () {
contentPosition = scrollContentWrapper.scrollTop;
scrollerBeingDragged = true;
window.addEventListener('mousemove', scrollBarScroll)
return false
}
function stopDrag(evt) {
@ -104,6 +105,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;
@ -536,7 +538,6 @@ window.initScrollable = function () {
}).call(this);
/* ---- plugins/Sidebar/media/morphdom.js ---- */