@wildebeest/scroll
Advanced tools
Comparing version 0.3.8 to 0.3.9
@@ -45,3 +45,3 @@ "use strict"; | ||
scrollMark.getEmitter().on('wbDrag', function (event) { | ||
_this.scrollBar.scrollBy(_this.normalizeRemaining(event.vertical)); | ||
_this.scrollBar.scrollBy(_this.normalize(event.vertical)); | ||
}); | ||
@@ -105,3 +105,3 @@ this.element.addEventListener('mousewheel', function (event) { | ||
} | ||
return pixelValue / this.element.offsetHeight; | ||
return pixelValue / this.scrollBar.getElement().offsetHeight; | ||
}; | ||
@@ -108,0 +108,0 @@ ScrollBox = __decorate([ |
{ | ||
"name": "@wildebeest/scroll", | ||
"version": "0.3.8", | ||
"version": "0.3.9", | ||
"description": "Scroll element with custom scroll bar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -50,3 +50,3 @@ import { DomService, EmitterService, Emitter } from "@wildebeest/common"; | ||
scrollMark.getEmitter().on('wbDrag', (event: any) => { | ||
this.scrollBar.scrollBy(this.normalizeRemaining(event.vertical)); | ||
this.scrollBar.scrollBy(this.normalize(event.vertical)); | ||
}); | ||
@@ -128,4 +128,4 @@ | ||
} | ||
return pixelValue / this.element.offsetHeight; | ||
return pixelValue / this.scrollBar.getElement().offsetHeight; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
52064