fix scrolling

This commit is contained in:
rlx 2019-01-21 12:34:25 +05:30
parent 0040adb801
commit 335eac0f6b

View file

@ -36,7 +36,7 @@ txtjs.open = function(url) {
.on({
mousedown: function(e) {
var offset = 'offsetY' in e ? e.offsetY : e.layerY;
document.body.scrollTop = offset / factor + margin - 16;
document.documentElement.scrollTop = offset / factor + margin - 16;
}
})
.appendTo($scroll),