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:
parent
bd67d8fe14
commit
c2fc131cdc
9 changed files with 31 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue